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... -- Summary: Repaint-Loop due to setBackground() Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: AWT AssignedTo: fitzsim at redhat dot com ReportedBy: hendrich at informatik dot uni-hamburg dot de CC: fitzsim at redhat dot com,gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19838