I have a Java program that uses threads. In my run method, I have:
public void run() { while(thread != null){ repaint(); System.out.print
You have to call paint(g) for a heavy-weight container such as a JFrame. You call paintComponent(g) for light-weight containers like a JButton. See if that works.