Java - repaint component every second?
<p>I would like to repaint component after each second, but it didn't work. What I am trying is:</p>

<pre><code>    try{
        while(true){
            Thread.currentThread().sleep(1000);
            gc.cb.next();
            gc.repaint();
        }
    }
    catch(Exception ie){
    }
</code></pre>
