changeset 2342:ef892cd084ec

6922214: SynthTextPaneUI.installUI() doesn't install the default caret and highlighter Reviewed-by: alexp
author rupashka
date Wed, 24 Mar 2010 15:14:16 +0300
parents 325823a26aac
children f799c62ad4f8
files src/share/classes/javax/swing/plaf/basic/BasicTextUI.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/plaf/basic/BasicTextUI.java	Thu Mar 18 12:02:12 2010 +0300
+++ b/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.