Question: write in java write an applet that displays a 4x4...
WRITE IN JAVA. Write an applet that displays a 4x4 grid(16 square). When the user clicks on square in the grid, the applet should draw a filled circle on it. If the square already has a circle, clicking on it should disappear.
Please dont take code and copy it and paste it on here.
use draw line to draw the squares
All of this needs to be in one class.
Use the MouseListener
Also, write method mousePressed to update the user mouse clicks.
Use repaint method as well
ps, seen different answers on here, so please do not use previous answers.. old solutions do not work.