Repaint « Thread « Java Swing Q&A





1. Repaint fails when using threads    java-forums.org

Hi, I'm trying to get to grips with threads and am creating a test application that carries out several tasks simultaneously. My problem is that when using a thread, the repaint() method doesn't seem to update the panel that I would expect it to. Below is the fragment of code in question: class ColourPanel extends JPanel implements Runnable { public void ...