The content pane in a JRootPane must have its background color set to null, so that it inherits the background from the surround containers (whichever is the first to have a non-null background, usually the JFrame or JInternalFrame containing the JRootPane).
2006-05-08 Roman Kennke <[EMAIL PROTECTED]>
PR 27481
* javax/swing/JRootPane.java
(createContentPane): Set background of the content pane to null,
so that the content pane inherits its background from the
root pane.
/Roman
--
“Improvement makes straight roads, but the crooked roads, without
Improvement, are roads of Genius.” - William Blake
Index: javax/swing/JRootPane.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JRootPane.java,v
retrieving revision 1.38
diff -u -1 -0 -r1.38 JRootPane.java
--- javax/swing/JRootPane.java 6 Apr 2006 21:12:31 -0000 1.38
+++ javax/swing/JRootPane.java 8 May 2006 14:19:56 -0000
@@ -544,20 +544,21 @@
/**
* DOCUMENT ME!
*
* @return DOCUMENT ME!
*/
protected Container createContentPane()
{
JPanel p = new JPanel();
p.setName(this.getName() + ".contentPane");
p.setLayout(new BorderLayout());
+ p.setBackground(null);
return p;
}
/**
* DOCUMENT ME!
*
* @return DOCUMENT ME!
*/
protected Component createGlassPane()
{
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil
