6922214: SynthTextPaneUI.installUI() doesn't install the default caret and highlighter
authorrupashka
Wed, 24 Mar 2010 15:14:16 +0300
changeset 5136 00e4567c2aad
parent 5135 99420aad4834
child 5137 9a7b933f58ae
6922214: SynthTextPaneUI.installUI() doesn't install the default caret and highlighter Reviewed-by: alexp
jdk/src/share/classes/javax/swing/plaf/basic/BasicTextUI.java
--- a/jdk/src/share/classes/javax/swing/plaf/basic/BasicTextUI.java	Thu Mar 18 12:02:12 2010 +0300
+++ b/jdk/src/share/classes/javax/swing/plaf/basic/BasicTextUI.java	Wed Mar 24 15:14:16 2010 +0300
@@ -762,7 +762,9 @@
      * component's background color to be painted.
      * <li>
      * Installs the default caret and highlighter into the
-     * associated component.
+     * associated component. These properties are only set if their
+     * current value is either {@code null} or an instance of
+     * {@link UIResource}.
      * <li>
      * Attaches to the editor and model.  If there is no
      * model, a default one is created.