From 0dc83b2158cfa5f491184288923e0ca1f665486e Mon Sep 17 00:00:00 2001 From: Alexander Potochkin Date: Thu, 24 Mar 2011 17:01:43 +0300 Subject: [PATCH] 6992716: Typos in JLayer files Reviewed-by: rupashka --- jdk/src/share/classes/javax/swing/JLayer.java | 4 ++-- .../classes/javax/swing/plaf/LayerUI.java | 24 +++++++++---------- 2 files changed, 13 insertions(+), 15 deletions(-) diff --git a/jdk/src/share/classes/javax/swing/JLayer.java b/jdk/src/share/classes/javax/swing/JLayer.java index 592fe82e24c..42f21e605a6 100644 --- a/jdk/src/share/classes/javax/swing/JLayer.java +++ b/jdk/src/share/classes/javax/swing/JLayer.java @@ -476,7 +476,7 @@ public final class JLayer * for this {@code JLayer} and the {@code JLayer} * is displayable. *

- * The following example shows how to correclty use this method + * The following example shows how to correctly use this method * in the {@code LayerUI} implementations: *

      *    public void installUI(JComponent c) {
@@ -834,7 +834,7 @@ public final class JLayer
         }
 
         /**
-         * First, implementatation of this method iterates through
+         * First, implementation of this method iterates through
          * glassPane's child components and returns {@code true}
          * if any of them is visible and contains passed x,y point.
          * After that it checks if no mouseListeners is attached to this component
diff --git a/jdk/src/share/classes/javax/swing/plaf/LayerUI.java b/jdk/src/share/classes/javax/swing/plaf/LayerUI.java
index e118467aa99..c7ff14eeb4b 100644
--- a/jdk/src/share/classes/javax/swing/plaf/LayerUI.java
+++ b/jdk/src/share/classes/javax/swing/plaf/LayerUI.java
@@ -25,9 +25,7 @@
 
 package javax.swing.plaf;
 
-import javax.accessibility.Accessible;
 import javax.swing.*;
-import javax.swing.plaf.ComponentUI;
 import java.awt.*;
 import java.awt.event.*;
 import java.beans.PropertyChangeEvent;
@@ -38,7 +36,7 @@ import java.io.Serializable;
 /**
  * The base class for all {@link javax.swing.JLayer}'s UI delegates.
  * 

- * {@link #paint(java.awt.Graphics, javax.swing.JComponent)} method performes the + * {@link #paint(java.awt.Graphics, javax.swing.JComponent)} method performs the * painting of the {@code JLayer} * and {@link #eventDispatched(AWTEvent, JLayer)} method is notified * about any {@code AWTEvent}s which have been generated by a {@code JLayer} @@ -165,7 +163,7 @@ public class LayerUI * l.setLayerEventMask(AWTEvent.COMPONENT_EVENT_MASK); * } * - * public void unistallUI(JComponent c) { + * public void uninstallUI(JComponent c) { * super.uninstallUI(c); * JLayer l = (JLayer) c; * l.setLayerEventMask(0); @@ -197,7 +195,7 @@ public class LayerUI * l.setLayerEventMask(AWTEvent.FOCUS_EVENT_MASK); * } * - * public void unistallUI(JComponent c) { + * public void uninstallUI(JComponent c) { * super.uninstallUI(c); * JLayer l = (JLayer) c; * l.setLayerEventMask(0); @@ -229,7 +227,7 @@ public class LayerUI * l.setLayerEventMask(AWTEvent.KEY_EVENT_MASK); * } * - * public void unistallUI(JComponent c) { + * public void uninstallUI(JComponent c) { * super.uninstallUI(c); * JLayer l = (JLayer) c; * l.setLayerEventMask(0); @@ -261,7 +259,7 @@ public class LayerUI * l.setLayerEventMask(AWTEvent.MOUSE_EVENT_MASK); * } * - * public void unistallUI(JComponent c) { + * public void uninstallUI(JComponent c) { * super.uninstallUI(c); * JLayer l = (JLayer) c; * l.setLayerEventMask(0); @@ -293,7 +291,7 @@ public class LayerUI * l.setLayerEventMask(AWTEvent.MOUSE_MOTION_EVENT_MASK); * } * - * public void unistallUI(JComponent c) { + * public void uninstallUI(JComponent c) { * super.uninstallUI(c); * JLayer l = (JLayer) c; * l.setLayerEventMask(0); @@ -325,7 +323,7 @@ public class LayerUI * l.setLayerEventMask(AWTEvent.MOUSE_WHEEL_EVENT_MASK); * } * - * public void unistallUI(JComponent c) { + * public void uninstallUI(JComponent c) { * super.uninstallUI(c); * JLayer l = (JLayer) c; * l.setLayerEventMask(0); @@ -357,7 +355,7 @@ public class LayerUI * l.setLayerEventMask(AWTEvent.INPUT_METHOD_EVENT_MASK); * } * - * public void unistallUI(JComponent c) { + * public void uninstallUI(JComponent c) { * super.uninstallUI(c); * JLayer l = (JLayer) c; * l.setLayerEventMask(0); @@ -389,7 +387,7 @@ public class LayerUI * l.setLayerEventMask(AWTEvent.HIERARCHY_EVENT_MASK); * } * - * public void unistallUI(JComponent c) { + * public void uninstallUI(JComponent c) { * super.uninstallUI(c); * JLayer l = (JLayer) c; * l.setLayerEventMask(0); @@ -421,7 +419,7 @@ public class LayerUI * l.setLayerEventMask(AWTEvent.HIERARCHY_BOUNDS_EVENT_MASK); * } * - * public void unistallUI(JComponent c) { + * public void uninstallUI(JComponent c) { * super.uninstallUI(c); * JLayer l = (JLayer) c; * l.setLayerEventMask(0); @@ -691,7 +689,7 @@ public class LayerUI * Otherwise, the default implementation is used. * * @param c {@code JLayer} to return preferred size for - * @return maximun size for the passed {@code JLayer} + * @return maximum size for the passed {@code JLayer} */ public Dimension getMaximumSize(JComponent c) { JLayer l = (JLayer) c;