Calls to setBackground() inside paint() cause an infinite repaint-loop, because setBackground() unconditionally causes a repaint(). This does not occur with JDK 1.1 .. 5.0 We might want to check whether the background color changes...
Created attachment 8148 [details] Demonstrates the repaint loop
Confirmed.
Just commited a simple fix for this to Classpath CVS.
Fixed by Sven de Marothy in GNU Classpath. Closing.