diff --git a/src/share/classes/javax/swing/border/CompoundBorder.java b/src/share/classes/javax/swing/border/CompoundBorder.java index 56371a47a6dc2fe153b26c1a6d7cd32396d51f41..a0143670ec27b618ea142ba3770568abb9d80ef7 100644 --- a/src/share/classes/javax/swing/border/CompoundBorder.java +++ b/src/share/classes/javax/swing/border/CompoundBorder.java @@ -37,11 +37,11 @@ import java.beans.ConstructorProperties; * For example, this class may be used to add blank margin space * to a component with an existing decorative border: *
- *
+ *
*
+ *
* Border border = comp.getBorder();
* Border margin = new EmptyBorder(10,10,10,10);
* comp.setBorder(new CompoundBorder(border, margin));
- *
* Warning:
* Serialized objects of this class will not be compatible with
diff --git a/src/share/classes/javax/swing/colorchooser/AbstractColorChooserPanel.java b/src/share/classes/javax/swing/colorchooser/AbstractColorChooserPanel.java
index 99a20e38ffde51cdd340a37eafb5966a515f3773..2a3b0c0c4c1bb41d5223b2821b97f9209d3647ab 100644
--- a/src/share/classes/javax/swing/colorchooser/AbstractColorChooserPanel.java
+++ b/src/share/classes/javax/swing/colorchooser/AbstractColorChooserPanel.java
@@ -85,7 +85,7 @@ public abstract class AbstractColorChooserPanel extends JPanel {
/**
* Provides a hint to the look and feel as to the
* KeyEvent.VK constant that can be used as a mnemonic to
- * access the panel. A return value <= 0 indicates there is no mnemonic.
+ * access the panel. A return value <= 0 indicates there is no mnemonic.
*
* The return value here is a hint, it is ultimately up to the look
* and feel to honor the return value in some meaningful way.
@@ -94,7 +94,7 @@ public abstract class AbstractColorChooserPanel extends JPanel {
* AbstractColorChooserPanel does not support a mnemonic,
* subclasses wishing a mnemonic will need to override this.
*
- * @return KeyEvent.VK constant identifying the mnemonic; <= 0 for no
+ * @return KeyEvent.VK constant identifying the mnemonic; <= 0 for no
* mnemonic
* @see #getDisplayedMnemonicIndex
* @since 1.4
@@ -107,7 +107,7 @@ public abstract class AbstractColorChooserPanel extends JPanel {
* Provides a hint to the look and feel as to the index of the character in
* getDisplayName that should be visually identified as the
* mnemonic. The look and feel should only use this if
- * getMnemonic returns a value > 0.
+ * getMnemonic returns a value > 0.
*
* The return value here is a hint, it is ultimately up to the look
* and feel to honor the return value in some meaningful way. For example,
diff --git a/src/share/classes/javax/swing/event/CaretEvent.java b/src/share/classes/javax/swing/event/CaretEvent.java
index 7b47eb3f7140194d2cc45d5b3968b40965a71a56..6cb3164b6b0d48f7a92a41c4e11e89288bf2d45a 100644
--- a/src/share/classes/javax/swing/event/CaretEvent.java
+++ b/src/share/classes/javax/swing/event/CaretEvent.java
@@ -56,7 +56,7 @@ public abstract class CaretEvent extends EventObject {
/**
* Fetches the location of the caret.
*
- * @return the dot >= 0
+ * @return the dot >= 0
*/
public abstract int getDot();
@@ -65,7 +65,7 @@ public abstract class CaretEvent extends EventObject {
* selection. If there is no selection, this
* will be the same as dot.
*
- * @return the mark >= 0
+ * @return the mark >= 0
*/
public abstract int getMark();
}
diff --git a/src/share/classes/javax/swing/event/DocumentEvent.java b/src/share/classes/javax/swing/event/DocumentEvent.java
index 707e698b63ce44447a8e7852b47849bf84e123a3..9c9c796f8ecf107e5c9e59f45dd09da0a57aaa9b 100644
--- a/src/share/classes/javax/swing/event/DocumentEvent.java
+++ b/src/share/classes/javax/swing/event/DocumentEvent.java
@@ -45,14 +45,14 @@ public interface DocumentEvent {
* Returns the offset within the document of the start
* of the change.
*
- * @return the offset >= 0
+ * @return the offset >= 0
*/
public int getOffset();
/**
* Returns the length of the change.
*
- * @return the length >= 0
+ * @return the length >= 0
*/
public int getLength();
@@ -155,7 +155,7 @@ public interface DocumentEvent {
* This is the location that children were added
* and/or removed.
*
- * @return the index >= 0
+ * @return the index >= 0
*/
public int getIndex();
diff --git a/src/share/classes/javax/swing/event/EventListenerList.java b/src/share/classes/javax/swing/event/EventListenerList.java
index 237bf2067b2ad557d486ae765fdbba3a34211130..004659ad24e399e459db7622468b734b81eabd16 100644
--- a/src/share/classes/javax/swing/event/EventListenerList.java
+++ b/src/share/classes/javax/swing/event/EventListenerList.java
@@ -69,7 +69,7 @@ import java.lang.reflect.Array;
* Object[] listeners = listenerList.getListenerList();
* // Process the listeners last to first, notifying
* // those that are interested in this event
- * for (int i = listeners.length-2; i>=0; i-=2) {
+ * for (int i = listeners.length-2; i>=0; i-=2) {
* if (listeners[i]==FooListener.class) {
* // Lazily create the event:
* if (fooEvent == null)
diff --git a/src/share/classes/javax/swing/event/ListDataEvent.java b/src/share/classes/javax/swing/event/ListDataEvent.java
index 3ccf01e1a45db01d0bf4605324a58bde1558d663..8862e724eaced78faf48464a42cd7f735ef199d6 100644
--- a/src/share/classes/javax/swing/event/ListDataEvent.java
+++ b/src/share/classes/javax/swing/event/ListDataEvent.java
@@ -85,9 +85,9 @@ public class ListDataEvent extends EventObject
public int getIndex1() { return index1; }
/**
- * Constructs a ListDataEvent object. If index0 is >
+ * Constructs a ListDataEvent object. If index0 is >
* index1, index0 and index1 will be swapped such that
- * index0 will always be <= index1.
+ * index0 will always be <= index1.
*
* @param source the source Object (typically this)
* @param type an int specifying {@link #CONTENTS_CHANGED},
diff --git a/src/share/classes/javax/swing/event/TreeModelEvent.java b/src/share/classes/javax/swing/event/TreeModelEvent.java
index 3c92dc16377a43835e4ccf8ca2d66936573993d9..6c6d7cef4cd43e9ce06a7aa9d393dae5a58b4d3f 100644
--- a/src/share/classes/javax/swing/event/TreeModelEvent.java
+++ b/src/share/classes/javax/swing/event/TreeModelEvent.java
@@ -101,14 +101,14 @@ public class TreeModelEvent extends EventObject {
* of initial-positions, you then need to convert the Vector of Integer
* objects to an array of int to create the event.
*
- * Notes:
insertNodeInto method in the
* DefaultTreeModel class, insertElementAt
* appends to the Vector when the index matches the size
* of the vector. So you can use insertElementAt(Integer, 0)
- * even when the vector is empty.
- * null.
+ * even when the vector is empty.null.FileView defines an abstract class that can be implemented
* to provide the filechooser with UI information for a File.
- * Each L&F JFileChooserUI object implements this
+ * Each L&F JFileChooserUI object implements this
* class to pass back the correct icons and type descriptions specific to
- * that L&F. For example, the Microsoft Windows L&F returns the
+ * that L&F. For example, the Microsoft Windows L&F returns the
* generic Windows icons for directories and generic files.
* Additionally, you may want to provide your own FileView to
* JFileChooser to return different icons or additional
@@ -44,7 +44,7 @@ import javax.swing.*;
* JFileChooser first looks to see if there is a user defined
* FileView, if there is, it gets type information from
* there first. If FileView returns null for
- * any method, JFileChooser then uses the L&F specific
+ * any method, JFileChooser then uses the L&F specific
* view to get the information.
* So, for example, if you provide a FileView class that
* returns an Icon for JPG files, and returns null
diff --git a/src/share/classes/javax/swing/table/DefaultTableCellRenderer.java b/src/share/classes/javax/swing/table/DefaultTableCellRenderer.java
index 518b43cafa9cc7045b37d035166d9286f24ededa..e061bff35a2085ad2c46dbee5556cb6e224279c3 100644
--- a/src/share/classes/javax/swing/table/DefaultTableCellRenderer.java
+++ b/src/share/classes/javax/swing/table/DefaultTableCellRenderer.java
@@ -150,7 +150,7 @@ public class DefaultTableCellRenderer extends JLabel
/**
* Notification from the UIManager that the look and feel
- * [L&F] has changed.
+ * [L&F] has changed.
* Replaces the current UI object with the latest version from the
* UIManager.
*
diff --git a/src/share/classes/javax/swing/table/DefaultTableModel.java b/src/share/classes/javax/swing/table/DefaultTableModel.java
index 623a719555939c549f3fcc1d160869efd6b76558..a018324a6bb42d86b945db0401b66191ff894cee 100644
--- a/src/share/classes/javax/swing/table/DefaultTableModel.java
+++ b/src/share/classes/javax/swing/table/DefaultTableModel.java
@@ -418,15 +418,14 @@ public class DefaultTableModel extends AbstractTableModel implements Serializabl
*
*
* Examples of moves:
- *
+ *
* 1. moveRow(1,3,5);
* a|B|C|D|e|f|g|h|i|j|k - before
* a|e|f|g|h|B|C|D|i|j|k - after
- *
+ *
* 2. moveRow(6,7,1);
* a|b|c|d|e|f|G|H|i|j|k - before
* a|G|H|b|c|d|e|f|i|j|k - after
- *
*
*
* @param start the starting row index to be moved
diff --git a/src/share/classes/javax/swing/table/JTableHeader.java b/src/share/classes/javax/swing/table/JTableHeader.java
index 04420e2386dfca837248daa5941fa091ec0a6b2e..f4a2901d5ae9dadf66fb2f398a5be7dfc669bd9a 100644
--- a/src/share/classes/javax/swing/table/JTableHeader.java
+++ b/src/share/classes/javax/swing/table/JTableHeader.java
@@ -437,7 +437,7 @@ public class JTableHeader extends JComponent implements TableColumnModelListener
//
/**
- * Returns the look and feel (L&F) object that renders this component.
+ * Returns the look and feel (L&F) object that renders this component.
*
* @return the TableHeaderUI object that renders this component
*/
@@ -446,9 +446,9 @@ public class JTableHeader extends JComponent implements TableColumnModelListener
}
/**
- * Sets the look and feel (L&F) object that renders this component.
+ * Sets the look and feel (L&F) object that renders this component.
*
- * @param ui the TableHeaderUI L&F object
+ * @param ui the TableHeaderUI L&F object
* @see UIDefaults#getUI
*/
public void setUI(TableHeaderUI ui){
@@ -460,7 +460,7 @@ public class JTableHeader extends JComponent implements TableColumnModelListener
/**
* Notification from the UIManager that the look and feel
- * (L&F) has changed.
+ * (L&F) has changed.
* Replaces the current UI object with the latest version from the
* UIManager.
*
@@ -478,7 +478,7 @@ public class JTableHeader extends JComponent implements TableColumnModelListener
/**
* Returns the suffix used to construct the name of the look and feel
- * (L&F) class used to render this component.
+ * (L&F) class used to render this component.
* @return the string "TableHeaderUI"
*
* @return "TableHeaderUI"
diff --git a/src/share/classes/javax/swing/table/TableCellRenderer.java b/src/share/classes/javax/swing/table/TableCellRenderer.java
index f48c628281a1c39ea2e449a905ca26b2ee199c83..525741648880f1e270d596d1ae3ae7f2749a2c30 100644
--- a/src/share/classes/javax/swing/table/TableCellRenderer.java
+++ b/src/share/classes/javax/swing/table/TableCellRenderer.java
@@ -49,10 +49,10 @@ public interface TableCellRenderer {
*
* JTable.DropLocation dropLocation = table.getDropLocation();
* if (dropLocation != null
- * && !dropLocation.isInsertRow()
- * && !dropLocation.isInsertColumn()
- * && dropLocation.getRow() == row
- * && dropLocation.getColumn() == column) {
+ * && !dropLocation.isInsertRow()
+ * && !dropLocation.isInsertColumn()
+ * && dropLocation.getRow() == row
+ * && dropLocation.getColumn() == column) {
*
* // this cell represents the current drop location
* // so render it specially, perhaps with a different color
diff --git a/src/share/classes/javax/swing/text/AbstractDocument.java b/src/share/classes/javax/swing/text/AbstractDocument.java
index d9eefe375c501f8aee2b6602b1af85b49e1b0607..a4dad8eed3a85241050ae7901ffb299883c87692 100644
--- a/src/share/classes/javax/swing/text/AbstractDocument.java
+++ b/src/share/classes/javax/swing/text/AbstractDocument.java
@@ -426,7 +426,7 @@ public abstract class AbstractDocument implements Document, Serializable {
* Returns the length of the data. This is the number of
* characters of content that represents the users data.
*
- * @return the length >= 0
+ * @return the length >= 0
* @see Document#getLength
*/
public int getLength() {
@@ -572,8 +572,8 @@ public abstract class AbstractDocument implements Document, Serializable {
* Concurrency
* in Swing for more information.
*
- * @param offs the starting offset >= 0
- * @param len the number of characters to remove >= 0
+ * @param offs the starting offset >= 0
+ * @param len the number of characters to remove >= 0
* @exception BadLocationException the given remove position is not a valid
* position within the document
* @see Document#remove
@@ -685,7 +685,7 @@ public abstract class AbstractDocument implements Document, Serializable {
* Concurrency
* in Swing for more information.
*
- * @param offs the starting offset >= 0
+ * @param offs the starting offset >= 0
* @param str the string to insert; does nothing with null/empty strings
* @param a the attributes for the inserted content
* @exception BadLocationException the given insert position is not a valid
@@ -777,8 +777,8 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Gets a sequence of text from the document.
*
- * @param offset the starting offset >= 0
- * @param length the number of characters to retrieve >= 0
+ * @param offset the starting offset >= 0
+ * @param length the number of characters to retrieve >= 0
* @return the text
* @exception BadLocationException the range given includes a position
* that is not a valid position within the document
@@ -810,7 +810,7 @@ public abstract class AbstractDocument implements Document, Serializable {
* Segment text = new Segment();
* int offs = 0;
* text.setPartialReturn(true);
- * while (nleft > 0) {
+ * while (nleft > 0) {
* doc.getText(offs, nleft, text);
* // do something with text
* nleft -= text.count;
@@ -818,8 +818,8 @@ public abstract class AbstractDocument implements Document, Serializable {
* }
*
*
- * @param offset the starting offset >= 0
- * @param length the number of characters to retrieve >= 0
+ * @param offset the starting offset >= 0
+ * @param length the number of characters to retrieve >= 0
* @param txt the Segment object to retrieve the text into
* @exception BadLocationException the range given includes a position
* that is not a valid position within the document
@@ -840,7 +840,7 @@ public abstract class AbstractDocument implements Document, Serializable {
* Concurrency
* in Swing for more information.
*
- * @param offs the position in the model >= 0
+ * @param offs the position in the model >= 0
* @return the position
* @exception BadLocationException if the given position does not
* represent a valid location in the associated document
@@ -956,7 +956,7 @@ public abstract class AbstractDocument implements Document, Serializable {
* should keep in mind however that a paragraph should at least be the
* unit of text over which to run the Unicode bidirectional algorithm.
*
- * @param pos the starting offset >= 0
+ * @param pos the starting offset >= 0
* @return the element */
public abstract Element getParagraphElement(int pos);
@@ -1288,8 +1288,8 @@ public abstract class AbstractDocument implements Document, Serializable {
*
* @param parent the parent element
* @param a the attributes for the element
- * @param p0 the beginning of the range >= 0
- * @param p1 the end of the range >= p0
+ * @param p0 the beginning of the range >= 0
+ * @param p1 the end of the range >= p0
* @return the new element
*/
protected Element createLeafElement(Element parent, AttributeSet a, int p0, int p1) {
@@ -1610,7 +1610,7 @@ public abstract class AbstractDocument implements Document, Serializable {
* Creates a position within the content that will
* track change as the content is mutated.
*
- * @param offset the offset in the content >= 0
+ * @param offset the offset in the content >= 0
* @return a Position
* @exception BadLocationException for an invalid offset
*/
@@ -1619,14 +1619,14 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Current length of the sequence of character content.
*
- * @return the length >= 0
+ * @return the length >= 0
*/
public int length();
/**
* Inserts a string of characters into the sequence.
*
- * @param where offset into the sequence to make the insertion >= 0
+ * @param where offset into the sequence to make the insertion >= 0
* @param str string to insert
* @return if the implementation supports a history mechanism,
* a reference to an Edit implementation will be returned,
@@ -1640,8 +1640,8 @@ public abstract class AbstractDocument implements Document, Serializable {
* Removes some portion of the sequence.
*
* @param where The offset into the sequence to make the
- * insertion >= 0.
- * @param nitems The number of items in the sequence to remove >= 0.
+ * insertion >= 0.
+ * @param nitems The number of items in the sequence to remove >= 0.
* @return If the implementation supports a history mechansim,
* a reference to an Edit implementation will be returned,
* otherwise null.
@@ -1653,8 +1653,8 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Fetches a string of characters contained in the sequence.
*
- * @param where Offset into the sequence to fetch >= 0.
- * @param len number of characters to copy >= 0.
+ * @param where Offset into the sequence to fetch >= 0.
+ * @param len number of characters to copy >= 0.
* @return the string
* @exception BadLocationException Thrown if the area covered by
* the arguments is not contained in the character sequence.
@@ -1664,8 +1664,8 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Gets a sequence of characters and copies them into a Segment.
*
- * @param where the starting offset >= 0
- * @param len the number of characters >= 0
+ * @param where the starting offset >= 0
+ * @param len the number of characters >= 0
* @param txt the target location to copy into
* @exception BadLocationException Thrown if the area covered by
* the arguments is not contained in the character sequence.
@@ -1809,7 +1809,7 @@ public abstract class AbstractDocument implements Document, Serializable {
* Dumps a debugging representation of the element hierarchy.
*
* @param psOut the output stream
- * @param indentAmount the indentation level >= 0
+ * @param indentAmount the indentation level >= 0
*/
public void dump(PrintStream psOut, int indentAmount) {
PrintWriter out;
@@ -1867,7 +1867,7 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Gets the number of attributes that are defined.
*
- * @return the number of attributes >= 0
+ * @return the number of attributes >= 0
* @see AttributeSet#getAttributeCount
*/
public int getAttributeCount() {
@@ -2116,21 +2116,21 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Gets the starting offset in the model for the element.
*
- * @return the offset >= 0
+ * @return the offset >= 0
*/
public abstract int getStartOffset();
/**
* Gets the ending offset in the model for the element.
*
- * @return the offset >= 0
+ * @return the offset >= 0
*/
public abstract int getEndOffset();
/**
* Gets a child element.
*
- * @param index the child index, >= 0 && < getElementCount()
+ * @param index the child index, >= 0 && < getElementCount()
* @return the child element
*/
public abstract Element getElement(int index);
@@ -2138,15 +2138,15 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Gets the number of children for the element.
*
- * @return the number of children >= 0
+ * @return the number of children >= 0
*/
public abstract int getElementCount();
/**
* Gets the child element index closest to the given model offset.
*
- * @param offset the offset >= 0
- * @return the element index >= 0
+ * @param offset the offset >= 0
+ * @return the element index >= 0
*/
public abstract int getElementIndex(int offset);
@@ -2272,7 +2272,7 @@ public abstract class AbstractDocument implements Document, Serializable {
* Gets the child element that contains
* the given model position.
*
- * @param pos the position >= 0
+ * @param pos the position >= 0
* @return the element, null if none
*/
public Element positionToElement(int pos) {
@@ -2289,8 +2289,8 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Replaces content with a new set of elements.
*
- * @param offset the starting offset >= 0
- * @param length the length to replace >= 0
+ * @param offset the starting offset >= 0
+ * @param length the length to replace >= 0
* @param elems the new elements
*/
public void replace(int offset, int length, Element[] elems) {
@@ -2342,7 +2342,7 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Gets the starting offset in the model for the element.
*
- * @return the offset >= 0
+ * @return the offset >= 0
*/
public int getStartOffset() {
return children[0].getStartOffset();
@@ -2352,7 +2352,7 @@ public abstract class AbstractDocument implements Document, Serializable {
* Gets the ending offset in the model for the element.
* @throws NullPointerException if this element has no children
*
- * @return the offset >= 0
+ * @return the offset >= 0
*/
public int getEndOffset() {
Element child =
@@ -2363,7 +2363,7 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Gets a child element.
*
- * @param index the child index, >= 0 && < getElementCount()
+ * @param index the child index, >= 0 && < getElementCount()
* @return the child element, null if none
*/
public Element getElement(int index) {
@@ -2376,7 +2376,7 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Gets the number of children for the element.
*
- * @return the number of children >= 0
+ * @return the number of children >= 0
*/
public int getElementCount() {
return nchildren;
@@ -2385,8 +2385,8 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Gets the child element index closest to the given model offset.
*
- * @param offset the offset >= 0
- * @return the element index >= 0
+ * @param offset the offset >= 0
+ * @return the element index >= 0
*/
public int getElementIndex(int offset) {
int index;
@@ -2515,8 +2515,8 @@ public abstract class AbstractDocument implements Document, Serializable {
*
* @param parent The parent element
* @param a The element attributes
- * @param offs0 The start offset >= 0
- * @param offs1 The end offset >= offs0
+ * @param offs0 The start offset >= 0
+ * @param offs1 The end offset >= offs0
* @since 1.4
*/
public LeafElement(Element parent, AttributeSet a, int offs0, int offs1) {
@@ -2545,7 +2545,7 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Gets the starting offset in the model for the element.
*
- * @return the offset >= 0
+ * @return the offset >= 0
*/
public int getStartOffset() {
return p0.getOffset();
@@ -2554,7 +2554,7 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Gets the ending offset in the model for the element.
*
- * @return the offset >= 0
+ * @return the offset >= 0
*/
public int getEndOffset() {
return p1.getOffset();
@@ -2576,8 +2576,8 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Gets the child element index closest to the given model offset.
*
- * @param pos the offset >= 0
- * @return the element index >= 0
+ * @param pos the offset >= 0
+ * @return the element index >= 0
*/
public int getElementIndex(int pos) {
return -1;
@@ -2586,7 +2586,7 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Gets a child element.
*
- * @param index the child index, >= 0 && < getElementCount()
+ * @param index the child index, >= 0 && < getElementCount()
* @return the child element
*/
public Element getElement(int index) {
@@ -2596,7 +2596,7 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Returns the number of child elements.
*
- * @return the number of children >= 0
+ * @return the number of children >= 0
*/
public int getElementCount() {
return 0;
@@ -2731,8 +2731,8 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Constructs a change record.
*
- * @param offs the offset into the document of the change >= 0
- * @param len the length of the change >= 0
+ * @param offs the offset into the document of the change >= 0
+ * @param len the length of the change >= 0
* @param type the type of event (DocumentEvent.EventType)
* @since 1.4
*/
@@ -2901,7 +2901,7 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Returns the offset within the document of the start of the change.
*
- * @return the offset >= 0
+ * @return the offset >= 0
* @see DocumentEvent#getOffset
*/
public int getOffset() {
@@ -2911,7 +2911,7 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Returns the length of the change.
*
- * @return the length >= 0
+ * @return the length >= 0
* @see DocumentEvent#getLength
*/
public int getLength() {
@@ -3024,7 +3024,7 @@ public abstract class AbstractDocument implements Document, Serializable {
* current model state for views that just attached to a model.
*
* @param e the element
- * @param index the index into the model >= 0
+ * @param index the index into the model >= 0
* @param removed a set of elements that were removed
* @param added a set of elements that were added
*/
@@ -3048,7 +3048,7 @@ public abstract class AbstractDocument implements Document, Serializable {
/**
* Returns the index into the list of elements.
*
- * @return the index >= 0
+ * @return the index >= 0
*/
public int getIndex() {
return index;
diff --git a/src/share/classes/javax/swing/text/AbstractWriter.java b/src/share/classes/javax/swing/text/AbstractWriter.java
index f3397e86679147e6c842045d9527a0e8a48119a5..1a664ce90c170276b38a13930259ffa3ed0c909e 100644
--- a/src/share/classes/javax/swing/text/AbstractWriter.java
+++ b/src/share/classes/javax/swing/text/AbstractWriter.java
@@ -417,7 +417,7 @@ public abstract class AbstractWriter {
/**
* Increments the indent level. If indenting would cause
- * getIndentSpace() *getIndentLevel() to be >
+ * getIndentSpace() *getIndentLevel() to be >
* than getLineLength() this will not cause an indent.
*/
protected void incrIndent() {
@@ -663,7 +663,7 @@ public abstract class AbstractWriter {
}
/**
- * Writes out the set of attributes as " SwingConstants.WEST
- * SwingConstants.EAST
- * SwingConstants.NORTH
- * SwingConstants.SOUTH
+ * SwingConstants.WESTSwingConstants.EASTSwingConstants.NORTHSwingConstants.SOUTHgetElementCount() - 1 if the location is
* greater than or equal to the end offset.
*
- * @param offset the specified offset >= 0
- * @return the element index >= 0
+ * @param offset the specified offset >= 0
+ * @return the element index >= 0
*/
public int getElementIndex(int offset);
@@ -114,14 +114,14 @@ public interface Element {
* Gets the number of child elements contained by this element.
* If this element is a leaf, a count of zero is returned.
*
- * @return the number of child elements >= 0
+ * @return the number of child elements >= 0
*/
public int getElementCount();
/**
* Fetches the child element at the given index.
*
- * @param index the specified index >= 0
+ * @param index the specified index >= 0
* @return the child element
*/
public Element getElement(int index);
diff --git a/src/share/classes/javax/swing/text/View.java b/src/share/classes/javax/swing/text/View.java
index 7eed01ef111bc4500cc8aa77724ce4e6d71f2f6d..8223cc8ed3a8bfc8abd43147263ef36bde4f36c1 100644
--- a/src/share/classes/javax/swing/text/View.java
+++ b/src/share/classes/javax/swing/text/View.java
@@ -293,7 +293,7 @@ public abstract class View implements SwingConstants {
/**
* Determines the desired alignment for this view along an
* axis. The desired alignment is returned. This should be
- * a value >= 0.0 and <= 1.0, where 0 indicates alignment at
+ * a value >= 0.0 and <= 1.0, where 0 indicates alignment at
* the origin and 1.0 indicates alignment to the full span
* away from the origin. An alignment of 0.5 would be the
* center of the view.
@@ -351,7 +351,7 @@ public abstract class View implements SwingConstants {
* the default is to not be a composite view this
* returns 0.
*
- * @return the number of views >= 0
+ * @return the number of views >= 0
* @see View#getViewCount
*/
public int getViewCount() {
@@ -362,7 +362,7 @@ public abstract class View implements SwingConstants {
* Gets the nth child view. Since there are no
* children by default, this returns null.
*
- * @param n the number of the view to get, >= 0 && < getViewCount()
+ * @param n the number of the view to get, >= 0 && < getViewCount()
* @return the view
*/
public View getView(int n) {
@@ -393,7 +393,7 @@ public abstract class View implements SwingConstants {
* Inserts a single child view. This is a convenience
* call to replace.
*
- * @param offs the offset of the view to insert before >= 0
+ * @param offs the offset of the view to insert before >= 0
* @param v the view
* @see #replace
* @since 1.3
@@ -428,9 +428,9 @@ public abstract class View implements SwingConstants {
* a view has no children.
*
* @param offset the starting index into the child views to insert
- * the new views. This should be a value >= 0 and <= getViewCount
+ * the new views. This should be a value >= 0 and <= getViewCount
* @param length the number of existing child views to remove
- * This should be a value >= 0 and <= (getViewCount() - offset).
+ * This should be a value >= 0 and <= (getViewCount() - offset).
* @param views the child views to add. This value can be
* null to indicate no children are being added
* (useful to remove).
@@ -445,7 +445,7 @@ public abstract class View implements SwingConstants {
* to return -1 to indicate there is no valid child index for any
* position.
*
- * @param pos the position >= 0
+ * @param pos the position >= 0
* @return index of the view representing the given position, or
* -1 if no view represents that position
* @since 1.3
@@ -461,7 +461,7 @@ public abstract class View implements SwingConstants {
* their location. This returns null since the
* default is to not have any child views.
*
- * @param index the index of the child, >= 0 && <
+ * @param index the index of the child, >= 0 && <
* getViewCount()
* @param a the allocation to this view
* @return the allocation to the child
@@ -477,7 +477,7 @@ public abstract class View implements SwingConstants {
* they might not be in the same order found in the model, or they just
* might not allow access to some of the locations in the model.
*
- * @param pos the position to convert >= 0
+ * @param pos the position to convert >= 0
* @param a the allocated region in which to render
* @param direction the direction from the current position that can
* be thought of as the arrow keys typically found on a keyboard.
@@ -566,7 +566,7 @@ public abstract class View implements SwingConstants {
* from the document model coordinate space
* to the view coordinate space.
*
- * @param pos the position of the desired character (>=0)
+ * @param pos the position of the desired character (>=0)
* @param a the area of the view, which encompasses the requested character
* @param b the bias toward the previous character or the
* next character represented by the offset, in case the
@@ -592,17 +592,17 @@ public abstract class View implements SwingConstants {
* to the view coordinate space. The specified region is
* created as a union of the first and last character positions.
*
- * @param p0 the position of the first character (>=0)
+ * @param p0 the position of the first character (>=0)
* @param b0 the bias of the first character position,
* toward the previous character or the
* next character represented by the offset, in case the
* position is a boundary of two views; b0 will have one
* of these values:
- * Position.Bias.Forward
* Position.Bias.Backward
* biasReturn
+ * given point in the view >= 0. The biasReturn
* argument will be
* filled in to indicate that the point given is closer to the next
* character in the model or the previous character in the model.
@@ -804,7 +804,7 @@ public abstract class View implements SwingConstants {
* Fetches the portion of the model for which this view is
* responsible.
*
- * @return the starting offset into the model >= 0
+ * @return the starting offset into the model >= 0
* @see View#getStartOffset
*/
public int getStartOffset() {
@@ -815,7 +815,7 @@ public abstract class View implements SwingConstants {
* Fetches the portion of the model for which this view is
* responsible.
*
- * @return the ending offset into the model >= 0
+ * @return the ending offset into the model >= 0
* @see View#getEndOffset
*/
public int getEndOffset() {
@@ -884,14 +884,14 @@ public abstract class View implements SwingConstants {
* @param axis may be either View.X_AXIS or
* View.Y_AXIS
* @param offset the location in the document model
- * that a broken fragment would occupy >= 0. This
+ * that a broken fragment would occupy >= 0. This
* would be the starting offset of the fragment
* returned
* @param pos the position along the axis that the
- * broken view would occupy >= 0. This may be useful for
+ * broken view would occupy >= 0. This may be useful for
* things like tab calculations
* @param len specifies the distance along the axis
- * where a potential break is desired >= 0
+ * where a potential break is desired >= 0
* @return the fragment of the view that represents the
* given span, if the view can be broken. If the view
* doesn't support breaking behavior, the view itself is
@@ -909,10 +909,10 @@ public abstract class View implements SwingConstants {
* the view doesn't support fragmenting (the default), it
* should return itself.
*
- * @param p0 the starting offset >= 0. This should be a value
+ * @param p0 the starting offset >= 0. This should be a value
* greater or equal to the element starting offset and
* less than the element ending offset.
- * @param p1 the ending offset > p0. This should be a value
+ * @param p1 the ending offset > p0. This should be a value
* less than or equal to the elements end offset and
* greater than the elements starting offset.
* @return the view fragment, or itself if the view doesn't
@@ -949,10 +949,10 @@ public abstract class View implements SwingConstants {
* @param axis may be either View.X_AXIS or
* View.Y_AXIS
* @param pos the potential location of the start of the
- * broken view >= 0. This may be useful for calculating tab
+ * broken view >= 0. This may be useful for calculating tab
* positions
* @param len specifies the relative length from pos
- * where a potential break is desired >= 0
+ * where a potential break is desired >= 0
* @return the weight, which should be a value between
* ForcedBreakWeight and BadBreakWeight
* @see LabelView
@@ -986,8 +986,8 @@ public abstract class View implements SwingConstants {
* layout of the view along the given axis, if it
* has any layout duties.
*
- * @param width the width >= 0
- * @param height the height >= 0
+ * @param width the width >= 0
+ * @param height the height >= 0
*/
public void setSize(float width, float height) {
}
@@ -1314,7 +1314,7 @@ public abstract class View implements SwingConstants {
* implemented to default the bias to Position.Bias.Forward
* which was previously implied.
*
- * @param pos the position to convert >= 0
+ * @param pos the position to convert >= 0
* @param a the allocated region in which to render
* @return the bounding box of the given position is returned
* @exception BadLocationException if the given position does
@@ -1332,11 +1332,11 @@ public abstract class View implements SwingConstants {
* Provides a mapping from the view coordinate space to the logical
* coordinate space of the model.
*
- * @param x the X coordinate >= 0
- * @param y the Y coordinate >= 0
+ * @param x the X coordinate >= 0
+ * @param y the Y coordinate >= 0
* @param a the allocated region in which to render
* @return the location within the model that best represents the
- * given point in the view >= 0
+ * given point in the view >= 0
* @see View#viewToModel
* @deprecated
*/