HighlandJinx
Programmer
Hi guy's i'm at a bit of a loss here, I have to draw a grid onto a JPanel preferably using the Graphics2D class. I tried just line drawing a grid but i have to be able to access each square in the grid and "Colour" them black as needs.
I looked up the API couldn't find a grid class, i even tried laying down JPanels onto the main panel in a gridlayout but kinda threw a wobbly at me after 40 panels. I'm using Sun ONE Forte Community Edition software to.
Thanks for any help.
J
I looked up the API couldn't find a grid class, i even tried laying down JPanels onto the main panel in a gridlayout but kinda threw a wobbly at me after 40 panels. I'm using Sun ONE Forte Community Edition software to.
Thanks for any help.
J