diff --git a/src/share/classes/javax/swing/JButton.java b/src/share/classes/javax/swing/JButton.java
index afa1bf0e7de6b01dac6d1f62d093ef857f4ac8f3..45e8757315c50d39bf49c7bcdb07122e06296c18 100644
--- a/src/share/classes/javax/swing/JButton.java
+++ b/src/share/classes/javax/swing/JButton.java
@@ -149,7 +149,7 @@ public class JButton extends AbstractButton implements Accessible {
/**
- * Returns a string that specifies the name of the L&F class
+ * Returns a string that specifies the name of the L&F class
* that renders this component.
*
* @return the string "ButtonUI"
@@ -157,7 +157,7 @@ public class JButton extends AbstractButton implements Accessible {
* @see UIDefaults#getUI
* @beaninfo
* expert: true
- * description: A string that specifies the name of the L&F class.
+ * description: A string that specifies the name of the L&F class.
*/
public String getUIClassID() {
return uiClassID;
diff --git a/src/share/classes/javax/swing/JCheckBox.java b/src/share/classes/javax/swing/JCheckBox.java
index 242d95aa0cae8e976f7c248516dd16ba94533542..4d80e9549c6b9c8c1af4a0d0603662cf5a3816ff 100644
--- a/src/share/classes/javax/swing/JCheckBox.java
+++ b/src/share/classes/javax/swing/JCheckBox.java
@@ -230,7 +230,7 @@ public class JCheckBox extends JToggleButton implements Accessible {
/**
- * Returns a string that specifies the name of the L&F class
+ * Returns a string that specifies the name of the L&F class
* that renders this component.
*
* @return the string "CheckBoxUI"
@@ -238,7 +238,7 @@ public class JCheckBox extends JToggleButton implements Accessible {
* @see UIDefaults#getUI
* @beaninfo
* expert: true
- * description: A string that specifies the name of the L&F class
+ * description: A string that specifies the name of the L&F class
*/
public String getUIClassID() {
return uiClassID;
diff --git a/src/share/classes/javax/swing/JCheckBoxMenuItem.java b/src/share/classes/javax/swing/JCheckBoxMenuItem.java
index 260ca01b117d0929f900c99efe540d6b8885e7c6..8b42b729f141b758a6426cbd0a44c145d7f618b2 100644
--- a/src/share/classes/javax/swing/JCheckBoxMenuItem.java
+++ b/src/share/classes/javax/swing/JCheckBoxMenuItem.java
@@ -168,7 +168,7 @@ public class JCheckBoxMenuItem extends JMenuItem implements SwingConstants,
}
/**
- * Returns the name of the L&F class
+ * Returns the name of the L&F class
* that renders this component.
*
* @return "CheckBoxMenuItemUI"
diff --git a/src/share/classes/javax/swing/JColorChooser.java b/src/share/classes/javax/swing/JColorChooser.java
index 07a72791fa5c4e3b6814e45cf455f493b8dbd0ce..eb3aff69a5ca5947721b9a09c27179c41d737468 100644
--- a/src/share/classes/javax/swing/JColorChooser.java
+++ b/src/share/classes/javax/swing/JColorChooser.java
@@ -216,7 +216,7 @@ public class JColorChooser extends JComponent implements Accessible {
}
/**
- * Returns the L&F object that renders this component.
+ * Returns the L&F object that renders this component.
*
* @return the ColorChooserUI object that renders
* this component
@@ -226,9 +226,9 @@ public class JColorChooser extends JComponent implements Accessible {
}
/**
- * Sets the L&F object that renders this component.
+ * Sets the L&F object that renders this component.
*
- * @param ui the ColorChooserUI L&F object
+ * @param ui the ColorChooserUI L&F object
* @see UIDefaults#getUI
*
* @beaninfo
@@ -241,7 +241,7 @@ public class JColorChooser extends JComponent implements Accessible {
}
/**
- * Notification from the UIManager that the L&F has changed.
+ * Notification from the UIManager that the L&F has changed.
* Replaces the current UI object with the latest version from the
* UIManager.
*
@@ -252,7 +252,7 @@ public class JColorChooser extends JComponent implements Accessible {
}
/**
- * Returns the name of the L&F class that renders this component.
+ * Returns the name of the L&F class that renders this component.
*
* @return the string "ColorChooserUI"
* @see JComponent#getUIClassID
diff --git a/src/share/classes/javax/swing/JComboBox.java b/src/share/classes/javax/swing/JComboBox.java
index 8ac710910a84ead4e0e1007e23a9eb05de2515c2..ba3bb8abb1d88e132f3801f7cb31b6d44b8cf63c 100644
--- a/src/share/classes/javax/swing/JComboBox.java
+++ b/src/share/classes/javax/swing/JComboBox.java
@@ -242,9 +242,9 @@ implements ItemSelectable,ListDataListener,ActionListener, Accessible {
}
/**
- * Sets the L&F object that renders this component.
+ * Sets the L&F object that renders this component.
*
- * @param ui the ComboBoxUI L&F object
+ * @param ui the ComboBoxUI L&F object
* @see UIDefaults#getUI
*
* @beaninfo
@@ -273,7 +273,7 @@ implements ItemSelectable,ListDataListener,ActionListener, Accessible {
/**
- * Returns the name of the L&F class that renders this component.
+ * Returns the name of the L&F class that renders this component.
*
* @return the string "ComboBoxUI"
* @see JComponent#getUIClassID
@@ -285,7 +285,7 @@ implements ItemSelectable,ListDataListener,ActionListener, Accessible {
/**
- * Returns the L&F object that renders this component.
+ * Returns the L&F object that renders this component.
*
* @return the ComboBoxUI object that renders this component
*/
@@ -607,7 +607,7 @@ implements ItemSelectable,ListDataListener,ActionListener, Accessible {
*
* @param anIndex an integer specifying the list item to select,
* where 0 specifies the first item in the list and -1 indicates no selection
- * @exception IllegalArgumentException if anIndex < -1 or
+ * @exception IllegalArgumentException if anIndex < -1 or
* anIndex is greater than or equal to size
* @beaninfo
* preferred: true
diff --git a/src/share/classes/javax/swing/JComponent.java b/src/share/classes/javax/swing/JComponent.java
index dac623a37bd430303555926b73d14289eb873edd..13576590a399114ca85a0857ed820fb34688380b 100644
--- a/src/share/classes/javax/swing/JComponent.java
+++ b/src/share/classes/javax/swing/JComponent.java
@@ -86,7 +86,7 @@ import sun.swing.UIClientPropertyKey;
*
*
The base class for both standard and custom components
* that use the Swing architecture.
- *
A "pluggable look and feel" (L&F) that can be specified by the
+ *
A "pluggable look and feel" (L&F) that can be specified by the
* programmer or (optionally) selected by the user at runtime.
* The look and feel for each component is provided by a
* UI delegate -- an object that descends from
@@ -4523,7 +4523,7 @@ public abstract class JComponent extends Container implements Serializable,
* @param propertyName the name of the property that was listened on
* @param oldValue the old value of the property
* @param newValue the new value of the property
- * @exception PropertyVetoException when the attempt to set the
+ * @exception java.beans.PropertyVetoException when the attempt to set the
* property is vetoed by the component
*/
protected void fireVetoableChange(String propertyName, Object oldValue, Object newValue)
diff --git a/src/share/classes/javax/swing/JDesktopPane.java b/src/share/classes/javax/swing/JDesktopPane.java
index c7201000a7b0b5290826ddfb52b55dcef7e03d12..8d5342f47cbf9cb9cdd798626d1dfaed6fd7aef1 100644
--- a/src/share/classes/javax/swing/JDesktopPane.java
+++ b/src/share/classes/javax/swing/JDesktopPane.java
@@ -50,13 +50,13 @@ import java.util.TreeSet;
* JLayeredPane to manage the potentially overlapping internal
* frames. It also maintains a reference to an instance of
* DesktopManager that is set by the UI
- * class for the current look and feel (L&F). Note that JDesktopPane
+ * class for the current look and feel (L&F). Note that JDesktopPane
* does not support borders.
*
* This class is normally used as the parent of JInternalFrames
* to provide a pluggable DesktopManager object to the
* JInternalFrames. The installUI of the
- * L&F specific implementation is responsible for setting the
+ * L&F specific implementation is responsible for setting the
* desktopManager variable appropriately.
* When the parent of a JInternalFrame is a JDesktopPane,
* it should delegate most of its behavior to the desktopManager
@@ -146,7 +146,7 @@ public class JDesktopPane extends JLayeredPane implements Accessible
}
/**
- * Returns the L&F object that renders this component.
+ * Returns the L&F object that renders this component.
*
* @return the DesktopPaneUI object that
* renders this component
@@ -156,9 +156,9 @@ public class JDesktopPane extends JLayeredPane implements Accessible
}
/**
- * Sets the L&F object that renders this component.
+ * Sets the L&F object that renders this component.
*
- * @param ui the DesktopPaneUI L&F object
+ * @param ui the DesktopPaneUI L&F object
* @see UIDefaults#getUI
* @beaninfo
* bound: true
@@ -232,7 +232,7 @@ public class JDesktopPane extends JLayeredPane implements Accessible
}
/**
- * Notification from the UIManager that the L&F has changed.
+ * Notification from the UIManager that the L&F has changed.
* Replaces the current UI object with the latest version from the
* UIManager.
*
@@ -244,7 +244,7 @@ public class JDesktopPane extends JLayeredPane implements Accessible
/**
- * Returns the name of the L&F class that renders this component.
+ * Returns the name of the L&F class that renders this component.
*
* @return the string "DesktopPaneUI"
* @see JComponent#getUIClassID
diff --git a/src/share/classes/javax/swing/JMenuItem.java b/src/share/classes/javax/swing/JMenuItem.java
index 1e616869fd2185eae6dd6e36ba5ee0d3db480f52..e13dc8b5b9d5d5795e46d2e6f829b937dddc89d7 100644
--- a/src/share/classes/javax/swing/JMenuItem.java
+++ b/src/share/classes/javax/swing/JMenuItem.java
@@ -229,7 +229,7 @@ public class JMenuItem extends AbstractButton implements Accessible,MenuElement
/**
* Sets the look and feel object that renders this component.
*
- * @param ui the JMenuItemUI L&F object
+ * @param ui the JMenuItemUI L&F object
* @see UIDefaults#getUI
* @beaninfo
* bound: true
@@ -252,7 +252,7 @@ public class JMenuItem extends AbstractButton implements Accessible,MenuElement
/**
- * Returns the suffix used to construct the name of the L&F class used to
+ * Returns the suffix used to construct the name of the L&F class used to
* render this component.
*
* @return the string "MenuItemUI"
diff --git a/src/share/classes/javax/swing/JToggleButton.java b/src/share/classes/javax/swing/JToggleButton.java
index d76daab9594eb139285cf14acc7b06fdbbd14860..bda38db5e8fb4a673136ce0daf8ffcb2bbebc965 100644
--- a/src/share/classes/javax/swing/JToggleButton.java
+++ b/src/share/classes/javax/swing/JToggleButton.java
@@ -186,14 +186,14 @@ public class JToggleButton extends AbstractButton implements Accessible {
}
/**
- * Returns a string that specifies the name of the l&f class
+ * Returns a string that specifies the name of the l&f class
* that renders this component.
*
* @return String "ToggleButtonUI"
* @see JComponent#getUIClassID
* @see UIDefaults#getUI
* @beaninfo
- * description: A string that specifies the name of the L&F class
+ * description: A string that specifies the name of the L&F class
*/
public String getUIClassID() {
return uiClassID;
diff --git a/src/share/classes/javax/swing/SpinnerDateModel.java b/src/share/classes/javax/swing/SpinnerDateModel.java
index cc41864a97ab074ec46a2fcaa1f4f8d5b76c5209..3eec041ca7701ceeecfd189698bb827df6b82d8d 100644
--- a/src/share/classes/javax/swing/SpinnerDateModel.java
+++ b/src/share/classes/javax/swing/SpinnerDateModel.java
@@ -221,7 +221,7 @@ public class SpinnerDateModel extends AbstractSpinnerModel implements Serializab
* MyStartDate implements Comparable {
* long t = 12345;
* public int compareTo(Date d) {
- * return (t < d.getTime() ? -1 : (t == d.getTime() ? 0 : 1));
+ * return (t < d.getTime() ? -1 : (t == d.getTime() ? 0 : 1));
* }
* public int compareTo(Object o) {
* return compareTo((Date)o);
@@ -435,7 +435,7 @@ public class SpinnerDateModel extends AbstractSpinnerModel implements Serializab
* If value is null,
* an IllegalArgumentException is thrown. No bounds
* checking is done here:
- * the new value may invalidate the (start <= value < end)
+ * the new value may invalidate the (start <= value < end)
* invariant enforced by the constructors. Naturally, one should ensure
* that the (start <= value <= maximum) invariant is true
* before calling the nextValue, previousValue,
diff --git a/src/share/classes/javax/swing/SpinnerListModel.java b/src/share/classes/javax/swing/SpinnerListModel.java
index 14b379ea6a0eb7c3364033a72fac8e9698bfec60..58f19e37a5a3b6e90a6bf43072ae1c6c97800c89 100644
--- a/src/share/classes/javax/swing/SpinnerListModel.java
+++ b/src/share/classes/javax/swing/SpinnerListModel.java
@@ -71,7 +71,7 @@ public class SpinnerListModel extends AbstractSpinnerModel implements Serializab
* size, an IllegalArugmentException is thrown.
*
* @param values the sequence this model represents
- * @throws IllegalArugmentException if values is
+ * @throws IllegalArgumentException if values is
* null or zero size
*/
public SpinnerListModel(List> values) {
@@ -88,10 +88,10 @@ public class SpinnerListModel extends AbstractSpinnerModel implements Serializab
* is defined by the specified array. The initial value of the model
* will be values[0]. If values is
* null or has zero length, an
- * IllegalArugmentException is thrown.
+ * IllegalArgumentException is thrown.
*
* @param values the sequence this model represents
- * @throws IllegalArugmentException if values is
+ * @throws IllegalArgumentException if values is
* null or zero length
*/
public SpinnerListModel(Object[] values) {
diff --git a/src/share/classes/javax/swing/SpinnerNumberModel.java b/src/share/classes/javax/swing/SpinnerNumberModel.java
index 0c0c1738ce803c454697d3bbe16156a2838ad5f7..220161257857716c68d57bb3c9a19c363436013e 100644
--- a/src/share/classes/javax/swing/SpinnerNumberModel.java
+++ b/src/share/classes/javax/swing/SpinnerNumberModel.java
@@ -180,7 +180,7 @@ public class SpinnerNumberModel extends AbstractSpinnerModel implements Serializ
* If minimum is null,
* then there is no lower bound. No bounds checking is done here;
* the new minimum value may invalidate the
- * (minimum <= value <= maximum)
+ * (minimum <= value <= maximum)
* invariant enforced by the constructors. This is to simplify updating
* the model, naturally one should ensure that the invariant is true
* before calling the getNextValue,
@@ -196,7 +196,7 @@ public class SpinnerNumberModel extends AbstractSpinnerModel implements Serializ
* MyDate extends Date { // Date already implements Comparable
* public int compareTo(Long o) {
* long t = getTime();
- * return (t < o.longValue() ? -1 : (t == o.longValue() ? 0 : 1));
+ * return (t < o.longValue() ? -1 : (t == o.longValue() ? 0 : 1));
* }
* }
*
@@ -235,7 +235,7 @@ public class SpinnerNumberModel extends AbstractSpinnerModel implements Serializ
* If maximum is null, then there
* is no upper bound. No bounds checking is done here; the new
* maximum value may invalidate the
- * (minimum <= value < maximum)
+ * (minimum <= value < maximum)
* invariant enforced by the constructors. This is to simplify updating
* the model, naturally one should ensure that the invariant is true
* before calling the next, previous,
diff --git a/src/share/classes/javax/swing/SpringLayout.java b/src/share/classes/javax/swing/SpringLayout.java
index 7686fc5622857b3f377622f14cd15dbb95851015..72de45661a00177cec579ae3645879ab022e5ca8 100644
--- a/src/share/classes/javax/swing/SpringLayout.java
+++ b/src/share/classes/javax/swing/SpringLayout.java
@@ -727,7 +727,7 @@ public class SpringLayout implements LayoutManager2 {
* For any other String value passed as the edge,
* no action is taken. For a null edge, a
* NullPointerException is thrown.
- *
+ *
* Note: This method can affect {@code x} and {@code y} values
* previously set for this {@code Constraints}.
*
diff --git a/src/share/classes/javax/swing/TransferHandler.java b/src/share/classes/javax/swing/TransferHandler.java
index f5d85408e70c1441ee774047fbb1abf2248be3ce..b169a8edcc7a3a09c41c7e874e849e91515bcff7 100644
--- a/src/share/classes/javax/swing/TransferHandler.java
+++ b/src/share/classes/javax/swing/TransferHandler.java
@@ -502,7 +502,7 @@ public class TransferHandler implements Serializable {
* the action with the source drop actions, and then compare the result
* against the original action. For example:
*
* This method is only for use with drag and drop transfers.
diff --git a/src/share/classes/javax/swing/UIDefaults.java b/src/share/classes/javax/swing/UIDefaults.java
index 9f304e742c76e4e3ad92c4948374d924fcc12faa..51cbd9cb57f2e5cda050ef2b58748361cce0b07a 100644
--- a/src/share/classes/javax/swing/UIDefaults.java
+++ b/src/share/classes/javax/swing/UIDefaults.java
@@ -706,7 +706,7 @@ public class UIDefaults extends Hashtable