diff -r 0002cbfaa23f -r 1df1f7dfab7f jdk/src/share/classes/javax/swing/plaf/LayerUI.java --- a/jdk/src/share/classes/javax/swing/plaf/LayerUI.java Sun Apr 17 16:21:27 2011 +0200 +++ b/jdk/src/share/classes/javax/swing/plaf/LayerUI.java Sun Apr 17 16:19:29 2011 -0700 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -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 @@ /** * 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 @@ * 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 @@ * 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 @@ * 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 @@ * 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 @@ * 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 @@ * 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 @@ * 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 @@ * 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 @@ * 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 @@ * 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;