Event and Drawing question...
I am trying to practice both drawing and mouse event methods in Java. I am attemtping to make a program that creates a 10x10 grid, and whenever the user clicks inside one of the squares created by the grid, I want the click event to turn that square black.
However, I am at a lost of how to even begin to handle the click event. How to I code so that the event only fills in that particular area? How does Java know that is the sqaure I want filled? Should I draw the grid with lines, or use rectangles and position them?

