6922214: SynthTextPaneUI.installUI() doesn't install the default caret and highlighter
Reviewed-by: alexp
--- 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.