# HG changeset patch # User alexp # Date 1291035794 -10800 # Node ID d16b38ca60f16418610d59a213ef5bd650c602cc # Parent 62ca3cd3f30474b1c45206baaccff3b8ae3c17b9 6939001: Nimbus: JTabbedPane setBackgroundAt and setForegroundAt have no effect Reviewed-by: rupashka diff -r 62ca3cd3f304 -r d16b38ca60f1 jdk/src/share/classes/javax/swing/JTabbedPane.java --- a/jdk/src/share/classes/javax/swing/JTabbedPane.java Mon Nov 29 16:01:00 2010 +0300 +++ b/jdk/src/share/classes/javax/swing/JTabbedPane.java Mon Nov 29 16:03:14 2010 +0300 @@ -1443,6 +1443,10 @@ * which can be null, in which case the tab's background color * will default to the background color of the tabbedpane. * An internal exception is raised if there is no tab at that index. + *

+ * It is up to the look and feel to honor this property, some may + * choose to ignore it. + * * @param index the tab index where the background should be set * @param background the color to be displayed in the tab's background * @exception IndexOutOfBoundsException if index is out of range @@ -1472,6 +1476,9 @@ * null, in which case the tab's foreground color * will default to the foreground color of this tabbedpane. * An internal exception is raised if there is no tab at that index. + *

+ * It is up to the look and feel to honor this property, some may + * choose to ignore it. * * @param index the tab index where the foreground should be set * @param foreground the color to be displayed as the tab's foreground