6939001: Nimbus: JTabbedPane setBackgroundAt and setForegroundAt have no effect
authoralexp
Mon, 29 Nov 2010 16:03:14 +0300
changeset 7260 d16b38ca60f1
parent 7259 62ca3cd3f304
child 7261 055384958326
6939001: Nimbus: JTabbedPane setBackgroundAt and setForegroundAt have no effect Reviewed-by: rupashka
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 <code>null</code>, in which case the tab's background color
      * will default to the background color of the <code>tabbedpane</code>.
      * An internal exception is raised if there is no tab at that index.
+     * <p/>
+     * 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 @@
      * <code>null</code>, in which case the tab's foreground color
      * will default to the foreground color of this <code>tabbedpane</code>.
      * An internal exception is raised if there is no tab at that index.
+     * <p/>
+     * 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