In JTabbedPane, in the subclass Pane, we should return the JTabbedPane's
background when no background has been explicitly set on the tab, so
that the UI paints the tab correctly.

2006-03-20  Roman Kennke  <[EMAIL PROTECTED]>

        * javax/swing/JTabbedPane.java
        (Pane.getBackground): When no background was explicitly set,
return
        the JTabbedPane's background.

/Roman

-- 
“Improvement makes straight roads, but the crooked roads, without
Improvement, are roads of Genius.” - William Blake
Index: javax/swing/JTabbedPane.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/JTabbedPane.java,v
retrieving revision 1.30
diff -u -r1.30 JTabbedPane.java
--- javax/swing/JTabbedPane.java	13 Mar 2006 21:33:37 -0000	1.30
+++ javax/swing/JTabbedPane.java	20 Mar 2006 21:41:58 -0000
@@ -379,7 +379,12 @@
      */
     public Color getBackground()
     {
-      return bg;
+      Color background;
+      if (bg == null)
+        background = component.getBackground();
+      else
+        background = bg;
+      return background;
     }
 
     /**

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to