Relative Content

Tag Archive for javaarrayscanvasjframemaze

How would one go about filling a java canvas with grids?

I would like to code a maze on Java Netbeans. I am trying to display a 2d array as a maze on a canvas but I have no idea where to start. Do I code the maze in a java class then call it from the jframe? I have found this method online but am not sure how to incorporate it to fill a canvas or anything else that can display it: