From 193b5129c1f172d657ae180dc238e4af5c5f89df Mon Sep 17 00:00:00 2001 From: Alexander Potochkin Date: Thu, 18 Nov 2010 19:52:40 +0300 Subject: [PATCH] 6997170: Spec for javax.swing.plaf.LayerUI.installUI/uninstallUI() methods contradict behavior of the RI Reviewed-by: rupashka --- jdk/src/share/classes/javax/swing/plaf/LayerUI.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/jdk/src/share/classes/javax/swing/plaf/LayerUI.java b/jdk/src/share/classes/javax/swing/plaf/LayerUI.java index 1fb757313a4..a375381c3d4 100644 --- a/jdk/src/share/classes/javax/swing/plaf/LayerUI.java +++ b/jdk/src/share/classes/javax/swing/plaf/LayerUI.java @@ -449,8 +449,8 @@ public class LayerUI /** * Configures the {@code JLayer} this {@code LayerUI} is set to. - * The default implementation registers the {@code LayerUI} - * as a property change listener for the passed {@code JLayer} component. + * The default implementation registers the passed {@code JLayer} component + * as a {@code PropertyChangeListener} for the property changes of this {@code LayerUI}. * * @param c the {@code JLayer} component where this UI delegate is being installed */ @@ -461,8 +461,8 @@ public class LayerUI /** * Reverses the configuration which was previously set * in the {@link #installUI(JComponent)} method. - * The default implementation unregisters the property change listener - * for the passed JLayer component. + * The default implementation unregisters the passed {@code JLayer} component + * as a {@code PropertyChangeListener} for the property changes of this {@code LayerUI}. * * @param c the component from which this UI delegate is being removed. */