diff --git a/src/share/classes/javax/swing/AbstractButton.java b/src/share/classes/javax/swing/AbstractButton.java index 5157b16ee71896aa07950d1060933e3f7d0ff175..6f75be948e9f272d86f41c5d987d527a65237ac2 100644 --- a/src/share/classes/javax/swing/AbstractButton.java +++ b/src/share/classes/javax/swing/AbstractButton.java @@ -1381,7 +1381,7 @@ public abstract class AbstractButton extends JComponent implements ItemSelectabl * If true and the button has a border, * the border is painted. The default value for the * borderPainted property is true. - *

+ *

* Some look and feels might not support * the borderPainted property, * in which case they ignore this. @@ -1476,7 +1476,7 @@ public abstract class AbstractButton extends JComponent implements ItemSelectabl * This function may cause the component's opaque property to change. *

* The exact behavior of calling this function varies on a - * component-by-component and L&F-by-L&F basis. + * component-by-component and L&F-by-L&F basis. * * @param b if true, the content should be filled; if false * the content area is not filled @@ -1702,7 +1702,7 @@ public abstract class AbstractButton extends JComponent implements ItemSelectabl * @see #getMultiClickThreshhold * @param threshhold the amount of time required between mouse * press events to generate corresponding action events - * @exception IllegalArgumentException if threshhold < 0 + * @exception IllegalArgumentException if threshhold < 0 * @since 1.4 */ public void setMultiClickThreshhold(long threshhold) { @@ -1787,7 +1787,7 @@ public abstract class AbstractButton extends JComponent implements ItemSelectabl /** - * Returns the L&F object that renders this component. + * Returns the L&F object that renders this component. * @return the ButtonUI object * @see #setUI */ @@ -1797,8 +1797,8 @@ public abstract class AbstractButton extends JComponent implements ItemSelectabl /** - * Sets the L&F object that renders this component. - * @param ui the ButtonUI L&F object + * Sets the L&F object that renders this component. + * @param ui the ButtonUI L&F object * @see #getUI * @beaninfo * bound: true @@ -2722,7 +2722,7 @@ public abstract class AbstractButton extends JComponent implements ItemSelectabl * * @param part the AccessibleText.CHARACTER, AccessibleText.WORD, * or AccessibleText.SENTENCE to retrieve - * @param index an index within the text >= 0 + * @param index an index within the text >= 0 * @return the letter, word, or sentence, * null for an invalid index or part * @since 1.3 @@ -2769,7 +2769,7 @@ public abstract class AbstractButton extends JComponent implements ItemSelectabl * * @param part the AccessibleText.CHARACTER, AccessibleText.WORD, * or AccessibleText.SENTENCE to retrieve - * @param index an index within the text >= 0 + * @param index an index within the text >= 0 * @return the letter, word, or sentence, null for an invalid * index or part * @since 1.3 @@ -2833,7 +2833,7 @@ public abstract class AbstractButton extends JComponent implements ItemSelectabl * * @param part the AccessibleText.CHARACTER, AccessibleText.WORD, * or AccessibleText.SENTENCE to retrieve - * @param index an index within the text >= 0 + * @param index an index within the text >= 0 * @return the letter, word, or sentence, null for an invalid index * or part * @since 1.3 diff --git a/src/share/classes/javax/swing/Action.java b/src/share/classes/javax/swing/Action.java index 307f40a74db2e87b0f5abc8c22c5da2c5fad76a6..7223d8196816692b4b98ff64e2213cc8b39cdece 100644 --- a/src/share/classes/javax/swing/Action.java +++ b/src/share/classes/javax/swing/Action.java @@ -69,7 +69,7 @@ import java.beans.*; * are desired, and use simple ActionListeners elsewhere. *

* - *

Swing Components Supporting Action

+ *

Swing Components Supporting Action

*

* Many of Swing's components have an Action property. When * an Action is set on a component, the following things @@ -95,8 +95,7 @@ import java.beans.*; * button's corresponding property being set to null. *

* + * summary="Supported Action properties"> * *
Component Property * Components diff --git a/src/share/classes/javax/swing/Box.java b/src/share/classes/javax/swing/Box.java index 2f4c6e4c76f1726cf5f65ca1ad47f74387c93153..1a3ace741292e229d2164071b1fff271d9e25917 100644 --- a/src/share/classes/javax/swing/Box.java +++ b/src/share/classes/javax/swing/Box.java @@ -155,7 +155,7 @@ public class Box extends JComponent implements Accessible { * in which case it takes its share of available space, * just like any other component that has no maximum height. * - * @param width the width of the invisible component, in pixels >= 0 + * @param width the width of the invisible component, in pixels >= 0 * @return the component * @see #createVerticalStrut * @see #createGlue @@ -179,7 +179,7 @@ public class Box extends JComponent implements Accessible { * in which case it takes its share of available space, * just like any other component that has no maximum width. * - * @param height the height of the invisible component, in pixels >= 0 + * @param height the height of the invisible component, in pixels >= 0 * @return the component * @see #createHorizontalStrut * @see #createGlue diff --git a/src/share/classes/javax/swing/BoxLayout.java b/src/share/classes/javax/swing/BoxLayout.java index f510553063e1f02fe5e1a5d14cad5d33daadbaee..09968fb0b358b129ba4071fef30f0dc0a941c8c4 100644 --- a/src/share/classes/javax/swing/BoxLayout.java +++ b/src/share/classes/javax/swing/BoxLayout.java @@ -287,7 +287,7 @@ public class BoxLayout implements LayoutManager2, Serializable { * in the specified target container. * * @param target the container that needs to be laid out - * @return the dimensions >= 0 && <= Integer.MAX_VALUE + * @return the dimensions >= 0 && <= Integer.MAX_VALUE * @exception AWTError if the target isn't the container specified to the * BoxLayout constructor * @see Container @@ -313,7 +313,7 @@ public class BoxLayout implements LayoutManager2, Serializable { * contained in the specified target container. * * @param target the container that needs to be laid out - * @return the dimensions >= 0 && <= Integer.MAX_VALUE + * @return the dimensions >= 0 && <= Integer.MAX_VALUE * @exception AWTError if the target isn't the container specified to the * BoxLayout constructor * @see #preferredLayoutSize @@ -338,7 +338,7 @@ public class BoxLayout implements LayoutManager2, Serializable { * to lay out the components it contains. * * @param target the container that needs to be laid out - * @return the dimensions >= 0 && <= Integer.MAX_VALUE + * @return the dimensions >= 0 && <= Integer.MAX_VALUE * @exception AWTError if the target isn't the container specified to the * BoxLayout constructor * @see #preferredLayoutSize @@ -365,7 +365,7 @@ public class BoxLayout implements LayoutManager2, Serializable { * to place the children along the X axis will be returned. * * @param target the container - * @return the alignment >= 0.0f && <= 1.0f + * @return the alignment >= 0.0f && <= 1.0f * @exception AWTError if the target isn't the container specified to the * BoxLayout constructor */ @@ -382,7 +382,7 @@ public class BoxLayout implements LayoutManager2, Serializable { * to place the children along the Y axis will be returned. * * @param target the container - * @return the alignment >= 0.0f && <= 1.0f + * @return the alignment >= 0.0f && <= 1.0f * @exception AWTError if the target isn't the container specified to the * BoxLayout constructor */ diff --git a/src/share/classes/javax/swing/CellRendererPane.java b/src/share/classes/javax/swing/CellRendererPane.java index 6a9f17b058adf731a800406973193bf12cb76a28..3e43b80d9ea8dbb6e85e9a159f973f8a7c5ee34e 100644 --- a/src/share/classes/javax/swing/CellRendererPane.java +++ b/src/share/classes/javax/swing/CellRendererPane.java @@ -96,7 +96,7 @@ public class CellRendererPane extends Container implements Accessible /** * If the specified component is already a child of this then we don't * bother doing anything - stacking order doesn't matter for cell - * renderer components (CellRendererPane doesn't paint anyway).< + * renderer components (CellRendererPane doesn't paint anyway). */ protected void addImpl(Component x, Object constraints, int index) { if (x.getParent() == this) { diff --git a/src/share/classes/javax/swing/DefaultListSelectionModel.java b/src/share/classes/javax/swing/DefaultListSelectionModel.java index 26f06c63a2ca6d2552b27c42dce7715e42023fc6..388a5a59a810461af7336a9399a41482c8bbf398 100644 --- a/src/share/classes/javax/swing/DefaultListSelectionModel.java +++ b/src/share/classes/javax/swing/DefaultListSelectionModel.java @@ -637,7 +637,7 @@ public class DefaultListSelectionModel implements ListSelectionModel, Cloneable, * Remove the indices in the interval index0,index1 (inclusive) from * the selection model. This is typically called to sync the selection * model width a corresponding change in the data model. Note - * that (as always) index0 need not be <= index1. + * that (as always) index0 need not be <= index1. */ public void removeIndexInterval(int index0, int index1) { diff --git a/src/share/classes/javax/swing/DesktopManager.java b/src/share/classes/javax/swing/DesktopManager.java index 2f141e493509aa856019ddc55276fc22e779d616..e0a2a434a4563e42d3b4e907a7d4a46be34b71d2 100644 --- a/src/share/classes/javax/swing/DesktopManager.java +++ b/src/share/classes/javax/swing/DesktopManager.java @@ -26,13 +26,13 @@ package javax.swing; /** DesktopManager objects are owned by a JDesktopPane object. They are responsible - * for implementing L&F specific behaviors for the JDesktopPane. JInternalFrame + * for implementing L&F specific behaviors for the JDesktopPane. JInternalFrame * implementations should delegate specific behaviors to the DesktopManager. For * instance, if a JInternalFrame was asked to iconify, it should try: *
   *    getDesktopPane().getDesktopManager().iconifyFrame(frame);
   * 
- * This delegation allows each L&F to provide custom behaviors for desktop-specific + * This delegation allows each L&F to provide custom behaviors for desktop-specific * actions. (For example, how and where the internal frame's icon would appear.) *

This class provides a policy for the various JInternalFrame methods, it is not * meant to be called directly rather the various JInternalFrame methods will call diff --git a/src/share/classes/javax/swing/GroupLayout.java b/src/share/classes/javax/swing/GroupLayout.java index 9b0d4df485bb0bdb3c8c1e3b06cedf843d92d358..e3be1ddfdd5f8d1100fa878a43a990cd392de24d 100644 --- a/src/share/classes/javax/swing/GroupLayout.java +++ b/src/share/classes/javax/swing/GroupLayout.java @@ -80,7 +80,7 @@ import static javax.swing.SwingConstants.VERTICAL; * axis. The sequential group contains three components. A parallel group * was used along the vertical axis. *

- * + * Sequential group along the horizontal axis in three components *

* To reinforce that each axis is treated independently the diagram shows * the range of each group and element along each axis. The @@ -102,7 +102,7 @@ import static javax.swing.SwingConstants.VERTICAL; * the vertical axis. *

*

- * + * Sequential group along the vertical axis in three components *

* As {@code c1} is the largest of the three components, the parallel * group is sized to {@code c1}. As {@code c2} and {@code c3} are smaller @@ -116,7 +116,7 @@ import static javax.swing.SwingConstants.VERTICAL; * The following diagram shows a sequential group along both the horizontal * and vertical axis. *

- * + * Sequential group along both the horizontal and vertical axis in three components *

* {@code GroupLayout} provides the ability to insert gaps between * {@code Component}s. The size of the gap is determined by an @@ -173,7 +173,7 @@ import static javax.swing.SwingConstants.VERTICAL; *

* When run the following is produced. *

- * + * Produced horizontal/vertical form *

* This layout consists of the following. *

  • The horizontal axis consists of a sequential group containing two diff --git a/src/share/classes/javax/swing/JComponent.java b/src/share/classes/javax/swing/JComponent.java index 598916da4129ef296bf19689b0adccf622ca89b6..3f4d3f25606d3b7f970aa7c5c0ef2a29df5dae3f 100644 --- a/src/share/classes/javax/swing/JComponent.java +++ b/src/share/classes/javax/swing/JComponent.java @@ -4906,12 +4906,12 @@ public abstract class JComponent extends Container implements Serializable, /** * Returns {@code true} if a paint triggered on a child component should cause * painting to originate from this Component, or one of its ancestors. - *

    + *

    * Calling {@link #repaint} or {@link #paintImmediately(int, int, int, int)} * on a Swing component will result in calling * the {@link JComponent#paintImmediately(int, int, int, int)} method of * the first ancestor which {@code isPaintingOrigin()} returns {@code true}, if there are any. - *

    + *

    * {@code JComponent} subclasses that need to be painted when any of their * children are repainted should override this method to return {@code true}. * diff --git a/src/share/classes/javax/swing/JEditorPane.java b/src/share/classes/javax/swing/JEditorPane.java index f4c5893068cdd7554246c7dba065a2d253cdd4fd..a104d1c0858d9b4ce17358c5d37d7355756258b4 100644 --- a/src/share/classes/javax/swing/JEditorPane.java +++ b/src/share/classes/javax/swing/JEditorPane.java @@ -103,7 +103,7 @@ import javax.accessibility.*; * fragment is a possible hyperlink listener implementation, that treats * HTML frame events specially, and simply displays any other activated * hyperlinks. - *

    + * 
     
          class Hyperactive implements HyperlinkListener {
      
    @@ -125,7 +125,7 @@ import javax.accessibility.*;
              }
          }
     
    - * 
    + *
    *

    * For information on customizing how text/html is rendered please see * {@link #W3C_LENGTH_UNITS} and {@link #HONOR_DISPLAY_PROPERTIES} diff --git a/src/share/classes/javax/swing/JFileChooser.java b/src/share/classes/javax/swing/JFileChooser.java index 218f6ae7310f8e43acc696729e518fa0c7a54bc5..012c6753300165b10bd5510d5c0cc1a4ae22e8c5 100644 --- a/src/share/classes/javax/swing/JFileChooser.java +++ b/src/share/classes/javax/swing/JFileChooser.java @@ -67,7 +67,7 @@ import java.lang.ref.WeakReference; *

      *    JFileChooser chooser = new JFileChooser();
      *    FileNameExtensionFilter filter = new FileNameExtensionFilter(
    - *        "JPG & GIF Images", "jpg", "gif");
    + *        "JPG & GIF Images", "jpg", "gif");
      *    chooser.setFileFilter(filter);
      *    int returnVal = chooser.showOpenDialog(parent);
      *    if(returnVal == JFileChooser.APPROVE_OPTION) {
    @@ -634,7 +634,7 @@ public class JFileChooser extends JComponent implements Accessible {
         /**
          * Pops up an "Open File" file chooser dialog. Note that the
          * text that appears in the approve button is determined by
    -     * the L&F.
    +     * the L&F.
          *
          * @param    parent  the parent component of the dialog,
          *                  can be null;
    @@ -659,7 +659,7 @@ public class JFileChooser extends JComponent implements Accessible {
         /**
          * Pops up a "Save File" file chooser dialog. Note that the
          * text that appears in the approve button is determined by
    -     * the L&F.
    +     * the L&F.
          *
          * @param    parent  the parent component of the dialog,
          *                  can be null;
    @@ -861,7 +861,7 @@ public class JFileChooser extends JComponent implements Accessible {
          * @beaninfo
          *   preferred: true
          *       bound: true
    -     * description: Sets whether the approve & cancel buttons are shown.
    +     * description: Sets whether the approve & cancel buttons are shown.
          *
          * @see #getControlButtonsAreShown
          * @see #CONTROL_BUTTONS_ARE_SHOWN_CHANGED_PROPERTY
    @@ -1841,7 +1841,7 @@ public class JFileChooser extends JComponent 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 "FileChooserUI"
    @@ -1849,16 +1849,16 @@ public class JFileChooser extends JComponent 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;
         }
     
         /**
    -     * Gets the UI object which implements the L&F for this component.
    +     * Gets the UI object which implements the L&F for this component.
          *
    -     * @return the FileChooserUI object that implements the FileChooserUI L&F
    +     * @return the FileChooserUI object that implements the FileChooserUI L&F
          */
         public FileChooserUI getUI() {
             return (FileChooserUI) ui;
    diff --git a/src/share/classes/javax/swing/JLabel.java b/src/share/classes/javax/swing/JLabel.java
    index be900a4697dfec936a032a8a3eceaf35f0ed631f..c6e28d92eaa92bfa86185756d30845bf0cff02e2 100644
    --- a/src/share/classes/javax/swing/JLabel.java
    +++ b/src/share/classes/javax/swing/JLabel.java
    @@ -237,7 +237,7 @@ public class JLabel extends JComponent implements SwingConstants, Accessible
     
     
         /**
    -     * Returns the L&F object that renders this component.
    +     * Returns the L&F object that renders this component.
          *
          * @return LabelUI object
          */
    @@ -247,9 +247,9 @@ public class JLabel extends JComponent implements SwingConstants, Accessible
     
     
         /**
    -     * Sets the L&F object that renders this component.
    +     * Sets the L&F object that renders this component.
          *
    -     * @param ui  the LabelUI L&F object
    +     * @param ui  the LabelUI L&F object
          * @see UIDefaults#getUI
          * @beaninfo
          *        bound: true
    @@ -277,7 +277,7 @@ public class JLabel extends JComponent implements SwingConstants, 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 "LabelUI"
    @@ -545,8 +545,8 @@ public class JLabel extends JComponent implements SwingConstants, Accessible
          *
          * @since 1.4
          * @param index Index into the String to underline
    -     * @exception IllegalArgumentException will be thrown if index= length of the text, or < -1
    +     * @exception IllegalArgumentException will be thrown if index
    +     *            is >= length of the text, or < -1
          *
          * @beaninfo
          *        bound: true
    @@ -1251,7 +1251,7 @@ public class JLabel extends JComponent implements SwingConstants, Accessible
              *
              * @param part the AccessibleText.CHARACTER, AccessibleText.WORD,
              * or AccessibleText.SENTENCE to retrieve
    -         * @param index an index within the text >= 0
    +         * @param index an index within the text >= 0
              * @return the letter, word, or sentence,
              *   null for an invalid index or part
              * @since 1.3
    @@ -1298,7 +1298,7 @@ public class JLabel extends JComponent implements SwingConstants, Accessible
              *
              * @param part the AccessibleText.CHARACTER, AccessibleText.WORD,
              * or AccessibleText.SENTENCE to retrieve
    -         * @param index an index within the text >= 0
    +         * @param index an index within the text >= 0
              * @return the letter, word, or sentence, null for an invalid
              *  index or part
              * @since 1.3
    @@ -1362,7 +1362,7 @@ public class JLabel extends JComponent implements SwingConstants, Accessible
              *
              * @param part the AccessibleText.CHARACTER, AccessibleText.WORD,
              *   or AccessibleText.SENTENCE to retrieve
    -         * @param index an index within the text >= 0
    +         * @param index an index within the text >= 0
              * @return the letter, word, or sentence, null for an invalid index
              *  or part
              * @since 1.3
    diff --git a/src/share/classes/javax/swing/JList.java b/src/share/classes/javax/swing/JList.java
    index 9b016251a7e451f5b097f8de44128589f03be10f..e62bc80135b63e357ed156dfaec0c4c859028f6c 100644
    --- a/src/share/classes/javax/swing/JList.java
    +++ b/src/share/classes/javax/swing/JList.java
    @@ -146,7 +146,7 @@ import static sun.swing.SwingUtilities2.Section.*;
      * Responsibility for listening to selection changes in order to keep the list's
      * visual representation up to date lies with the list's {@code ListUI}.
      * 

    - * + * * Painting of cells in a {@code JList} is handled by a delegate called a * cell renderer, installed on the list as the {@code cellRenderer} property. * The renderer provides a {@code java.awt.Component} that is used @@ -202,7 +202,7 @@ import static sun.swing.SwingUtilities2.Section.*; * To avoid these calculations, you can set a {@code fixedCellWidth} and * {@code fixedCellHeight} on the list, or have these values calculated * automatically based on a single prototype value: - * + * *

      * {@code
      * JList bigDataList = new JList(bigData);
    @@ -1512,7 +1512,7 @@ public class JList extends JComponent implements Scrollable, Accessible
          * tooltip text on the cell level, by using {@code setToolTipText} on your
          * cell renderer component.
          * 

    - * Note: For JList to properly display the + * Note: For JList to properly display the * tooltips of its renderers in this manner, JList must be a * registered component with the ToolTipManager. This registration * is done automatically in the constructor. However, if at a later point diff --git a/src/share/classes/javax/swing/JMenu.java b/src/share/classes/javax/swing/JMenu.java index 60aa661ff700ab4800c76c76b317aefe792c4515..7493ede1ab8ef0dc451c1187cad1833738764d7d 100644 --- a/src/share/classes/javax/swing/JMenu.java +++ b/src/share/classes/javax/swing/JMenu.java @@ -225,7 +225,7 @@ public class JMenu extends JMenuItem implements Accessible,MenuElement /** - * 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 "MenuUI" * @see JComponent#getUIClassID @@ -490,7 +490,7 @@ public class JMenu extends JMenuItem implements Accessible,MenuElement /** * Returns the suggested delay, in milliseconds, before submenus * are popped up or down. - * Each look and feel (L&F) may determine its own policy for + * Each look and feel (L&F) may determine its own policy for * observing the delay property. * In most cases, the delay is not observed for top level menus * or while dragging. The default for delay is 0. @@ -506,7 +506,7 @@ public class JMenu extends JMenuItem implements Accessible,MenuElement /** * Sets the suggested delay before the menu's PopupMenu - * is popped up or down. Each look and feel (L&F) may determine + * is popped up or down. Each look and feel (L&F) may determine * it's own policy for observing the delay property. In most cases, * the delay is not observed for top level menus or while dragging. * This method is a property of the look and feel code and is used @@ -676,7 +676,7 @@ public class JMenu extends JMenuItem implements Accessible,MenuElement * @param pos an integer specifying the position at which to add the * new menu item * @exception IllegalArgumentException when the value of - * pos < 0 + * pos < 0 */ public void insert(String s, int pos) { if (pos < 0) { @@ -695,7 +695,7 @@ public class JMenu extends JMenuItem implements Accessible,MenuElement * new JMenuitem * @return the new menu item * @exception IllegalArgumentException if the value of - * pos < 0 + * pos < 0 */ public JMenuItem insert(JMenuItem mi, int pos) { if (pos < 0) { @@ -714,7 +714,7 @@ public class JMenu extends JMenuItem implements Accessible,MenuElement * @param pos an integer specifying the position at which to add the * new menu item * @exception IllegalArgumentException if the value of - * pos < 0 + * pos < 0 */ public JMenuItem insert(Action a, int pos) { if (pos < 0) { @@ -735,7 +735,7 @@ public class JMenu extends JMenuItem implements Accessible,MenuElement * @param index an integer specifying the position at which to * insert the menu separator * @exception IllegalArgumentException if the value of - * index < 0 + * index < 0 */ public void insertSeparator(int index) { if (index < 0) { @@ -754,7 +754,7 @@ public class JMenu extends JMenuItem implements Accessible,MenuElement * * @param pos an integer specifying the position * @exception IllegalArgumentException if the value of - * pos < 0 + * pos < 0 * @return the menu item at the specified position; or null * if the item as the specified position is not a menu item */ @@ -811,7 +811,7 @@ public class JMenu extends JMenuItem implements Accessible,MenuElement * * @param pos the position of the item to be removed * @exception IllegalArgumentException if the value of - * pos < 0, or if pos + * pos < 0, or if pos * is greater than the number of menu items */ public void remove(int pos) { diff --git a/src/share/classes/javax/swing/JMenuBar.java b/src/share/classes/javax/swing/JMenuBar.java index 8e6683d6f17e5113142b6d99a92a65eb9f4013a5..f00d4207485ca773a3b8ca088a0e8a5696051e9c 100644 --- a/src/share/classes/javax/swing/JMenuBar.java +++ b/src/share/classes/javax/swing/JMenuBar.java @@ -130,9 +130,9 @@ public class JMenuBar extends JComponent implements Accessible,MenuElement } /** - * Sets the L&F object that renders this component. + * Sets the L&F object that renders this component. * - * @param ui the new MenuBarUI L&F object + * @param ui the new MenuBarUI L&F object * @see UIDefaults#getUI * @beaninfo * bound: true @@ -155,7 +155,7 @@ public class JMenuBar extends JComponent implements Accessible,MenuElement /** - * 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 "MenuBarUI" * @see JComponent#getUIClassID diff --git a/src/share/classes/javax/swing/JTextField.java b/src/share/classes/javax/swing/JTextField.java index 0e5e9aa49152b25054a1d88e26ce062558ceb0a7..d4bc1aa0f6b89f01f3b676ffcdd085bc0c3c2c43 100644 --- a/src/share/classes/javax/swing/JTextField.java +++ b/src/share/classes/javax/swing/JTextField.java @@ -367,7 +367,7 @@ public class JTextField extends JTextComponent implements SwingConstants { /** * Returns the number of columns in this TextField. * - * @return the number of columns >= 0 + * @return the number of columns >= 0 */ public int getColumns() { return columns; @@ -377,7 +377,7 @@ public class JTextField extends JTextComponent implements SwingConstants { * Sets the number of columns in this TextField, * and then invalidate the layout. * - * @param columns the number of columns >= 0 + * @param columns the number of columns >= 0 * @exception IllegalArgumentException if columns * is less than 0 * @beaninfo @@ -402,7 +402,7 @@ public class JTextField extends JTextComponent implements SwingConstants { * character m for the font used. This method can be * redefined to be some alternative amount * - * @return the column width >= 1 + * @return the column width >= 1 */ protected int getColumnWidth() { if (columnWidth == 0) { @@ -744,7 +744,7 @@ public class JTextField extends JTextComponent implements SwingConstants { /** * Gets the scroll offset, in pixels. * - * @return the offset >= 0 + * @return the offset >= 0 */ public int getScrollOffset() { return visibility.getValue(); @@ -753,7 +753,7 @@ public class JTextField extends JTextComponent implements SwingConstants { /** * Sets the scroll offset, in pixels. * - * @param scrollOffset the offset >= 0 + * @param scrollOffset the offset >= 0 */ public void setScrollOffset(int scrollOffset) { visibility.setValue(scrollOffset);