From a30ca156c56d1fe19540debc1cc2012f35cb0e2e Mon Sep 17 00:00:00 2001 From: alexp Date: Mon, 29 Nov 2010 16:03:14 +0300 Subject: [PATCH] 6939001: Nimbus: JTabbedPane setBackgroundAt and setForegroundAt have no effect Reviewed-by: rupashka --- src/share/classes/javax/swing/JTabbedPane.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/share/classes/javax/swing/JTabbedPane.java b/src/share/classes/javax/swing/JTabbedPane.java index 1d5484387..572e1c370 100644 --- a/src/share/classes/javax/swing/JTabbedPane.java +++ b/src/share/classes/javax/swing/JTabbedPane.java @@ -1443,6 +1443,10 @@ public class JTabbedPane extends JComponent * 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 @@ public class JTabbedPane extends JComponent * 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 -- GitLab