File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Bouncing Circles Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply locked New topic

Bouncing Circles

Rose Jac
Ranch Hand

Joined: May 20, 2011
Posts: 33

I want to bounce multiple circles off the Boundaries of an applet.
Till now, I have been able to do only one bouncing circle, whose x and y coordinate are explicitly specified in the program.
I want to add the circles from an arrayList.
Do i have to have multiple threads for such a program ie one thread for one circle?

Any help or tutorial on the same?

Darryl Burke

Joined: May 03, 2008
Posts: 4523

How is this different from your previous thread Moving Circles?

You have already been asked once before to Use One Thread Per Question.

luck, db
There are no new questions, but there may be new answers.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Bouncing Circles
Similar Threads
JTextFields & storing data
Different Colour for different group of overlapping circles.
Non-static variable cannot be referenced from static context
Help in Algorithm Construction
2darray identify part of array and add its value to total