java move a shape object
<p>i have a program that create the circle that move to random position with multithread, each thread will handle each circle movement. i know how to move a image but not a shape object.</p>

<p>g2d.draw(s.circle);</p>

<p>this line only paint the circle with spawn x y.</p>

<p>i've tried add 
s.circle.getBounds().setLocation(s.x, s.y);
before 
g2d.draw(s.circle);
but no effect</p>

<pre><code>public void paint(Graphics g) {
    if (draw == true) {


        super.paint(g);
        Graphics2D g2d = (Graphics2D)g;

            for (Star s : this.items) {
                //g2d.drawImage(s.starImage, s.x, s.y, this);

                g2d.draw(s.circle);

            }

        Toolkit.getDefaultToolkit().sync();
        g.dispose();

    }
}

public void run() {

    //if (!items.isEmpty()) {
        while(true){
            try {
                for (Star s : this.items) {
                    s.move();
                }
                repaint();

                Thread.sleep(50);
            } catch (InterruptedException ex) {
                Logger.getLogger(Board.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
    //}
}
</code></pre>
