The JRootPane in Sun's implementation is opaque, so should we do. This allows for some nice painting optimization (if the root pane isn't opaque, the painting goes up to the toplevel container, thus jumping out of Swing and going through the inefficient AWT painting.).
2006-02-13 Roman Kennke <[EMAIL PROTECTED]> * javax/swing/JRootPane.java (JRootPane): Set opaque property to true. /Roman
Index: javax/swing/JRootPane.java =================================================================== RCS file: /cvsroot/classpath/classpath/javax/swing/JRootPane.java,v retrieving revision 1.33 diff -u -r1.33 JRootPane.java --- javax/swing/JRootPane.java 30 Jan 2006 21:13:42 -0000 1.33 +++ javax/swing/JRootPane.java 13 Feb 2006 22:13:35 -0000 @@ -526,6 +526,7 @@ getGlassPane(); getLayeredPane(); getContentPane(); + setOpaque(true); updateUI(); }