
I wanted as many clicks are there ,circles should be displayed there. I tried this code but it erases previous circles. plz help.
public void mouseClicked(MouseEvent m)
{
x=m.getX();
y=m.getY();
repaint();
}
public void paint(Graphics g)
{
g.drawOval(x,y,30,30);
}``
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.