Why do you want to use thread pools? You can easily do this with just the Event Dispatch Thread and a worker thread.
Start by writing a program that moves one circle around and draws it. One thread should be responsible for updating the location of the circle, and calling repaint() on the component used to draw the circle.
Joined: Jun 15, 2011
this code runs but not Simultaneously" circle ends its moving and then another one starts . How can make it concurrent ??
Stephan van Hulst
Joined: Sep 20, 2010
Don't put program logic in the paintComponent method (I assume your painting method calls move, telling by the Graphics argument).
Use a separate thread to update the positions of the circles. SwingWorker may help you out.