Clicking for dots

U

ungvichian

OK, I'm new to Java applets, so let's just get down and dirty. How do
I write an applet which, when you click on it, makes a dot where you
click? And one that uses the drawOval method, I might add.
 
T

Tor Iver Wilhelmsen

OK, I'm new to Java applets, so let's just get down and dirty. How do
I write an applet which, when you click on it, makes a dot where you
click? And one that uses the drawOval method, I might add.

Well, you need the MouseEvent and MouseListener from java.awt.event,
and you will want to add to a set of coordinates and paint them all in
paint().
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top