diff --git a/src/java.desktop/share/classes/java/awt/Component.java b/src/java.desktop/share/classes/java/awt/Component.java index 54acb64b70cfa..ad0b87fd3fcb3 100644 --- a/src/java.desktop/share/classes/java/awt/Component.java +++ b/src/java.desktop/share/classes/java/awt/Component.java @@ -2265,7 +2265,8 @@ public void resize(int width, int height) { * @param d the dimension specifying the new size * of this component * @throws NullPointerException if {@code d} is {@code null} - * @see #setSize + * @see #setSize(int, int) + * @see #getSize * @see #setBounds * @see #invalidate * @since 1.1 @@ -8562,7 +8563,7 @@ public void addPropertyChangeListener( * * @see #addPropertyChangeListener * @see #getPropertyChangeListeners - * @see #removePropertyChangeListener(java.lang.String,java.beans.PropertyChangeListener) + * @see #removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) */ public void removePropertyChangeListener( PropertyChangeListener listener) { @@ -8626,7 +8627,7 @@ public PropertyChangeListener[] getPropertyChangeListeners() { * * @see #removePropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) * @see #getPropertyChangeListeners(java.lang.String) - * @see #addPropertyChangeListener(java.lang.String, java.beans.PropertyChangeListener) + * @see #addPropertyChangeListener(java.beans.PropertyChangeListener) */ public void addPropertyChangeListener( String propertyName, diff --git a/src/java.desktop/share/classes/java/awt/List.java b/src/java.desktop/share/classes/java/awt/List.java index fe1a5dc553043..d3130eb550251 100644 --- a/src/java.desktop/share/classes/java/awt/List.java +++ b/src/java.desktop/share/classes/java/awt/List.java @@ -1697,7 +1697,7 @@ public Color getBackground() { * Set the background color of this object. * * @param c the new Color for the background - * @see #setBackground + * @see #getBackground */ public void setBackground(Color c) { parent.setBackground(c); diff --git a/src/java.desktop/share/classes/java/awt/MediaTracker.java b/src/java.desktop/share/classes/java/awt/MediaTracker.java index 37e372d0d1f6b..2435dd0ba3393 100644 --- a/src/java.desktop/share/classes/java/awt/MediaTracker.java +++ b/src/java.desktop/share/classes/java/awt/MediaTracker.java @@ -418,7 +418,6 @@ public void waitForAll() throws InterruptedException { * @return {@code true} if all images were successfully * loaded; {@code false} otherwise * @see java.awt.MediaTracker#waitForID(int) - * @see java.awt.MediaTracker#waitForAll(long) * @see java.awt.MediaTracker#isErrorAny * @see java.awt.MediaTracker#isErrorID * @throws InterruptedException if any thread has @@ -527,7 +526,7 @@ public boolean checkID(int id) { * @return {@code true} if all images have finished loading, * have been aborted, or have encountered * an error; {@code false} otherwise - * @see java.awt.MediaTracker#checkID(int, boolean) + * @see java.awt.MediaTracker#checkID(int) * @see java.awt.MediaTracker#checkAll() * @see java.awt.MediaTracker#isErrorAny() * @see java.awt.MediaTracker#isErrorID(int) diff --git a/src/java.desktop/share/classes/javax/accessibility/AccessibleComponent.java b/src/java.desktop/share/classes/javax/accessibility/AccessibleComponent.java index f8953776bb311..e33db8e0f6d60 100644 --- a/src/java.desktop/share/classes/javax/accessibility/AccessibleComponent.java +++ b/src/java.desktop/share/classes/javax/accessibility/AccessibleComponent.java @@ -67,7 +67,7 @@ public interface AccessibleComponent { * Sets the background color of this object. * * @param c the new color for the background - * @see #setBackground + * @see #getBackground */ public void setBackground(Color c); diff --git a/src/java.desktop/share/classes/javax/accessibility/AccessibleState.java b/src/java.desktop/share/classes/javax/accessibility/AccessibleState.java index 0c1573cad0d77..a09d362b65b86 100644 --- a/src/java.desktop/share/classes/javax/accessibility/AccessibleState.java +++ b/src/java.desktop/share/classes/javax/accessibility/AccessibleState.java @@ -288,7 +288,7 @@ public class AccessibleState extends AccessibleBundle { * Indicates the orientation of this object is vertical. This is usually * associated with objects such as scrollbars, sliders, and progress bars. * - * @see #VERTICAL + * @see #HORIZONTAL * @see AccessibleRole#SCROLL_BAR * @see AccessibleRole#SLIDER * @see AccessibleRole#PROGRESS_BAR @@ -300,7 +300,7 @@ public class AccessibleState extends AccessibleBundle { * Indicates the orientation of this object is horizontal. This is usually * associated with objects such as scrollbars, sliders, and progress bars. * - * @see #HORIZONTAL + * @see #VERTICAL * @see AccessibleRole#SCROLL_BAR * @see AccessibleRole#SLIDER * @see AccessibleRole#PROGRESS_BAR diff --git a/src/java.desktop/share/classes/javax/swing/JComboBox.java b/src/java.desktop/share/classes/javax/swing/JComboBox.java index 0d56280d3a4bf..67600ad323a81 100644 --- a/src/java.desktop/share/classes/javax/swing/JComboBox.java +++ b/src/java.desktop/share/classes/javax/swing/JComboBox.java @@ -155,7 +155,7 @@ public class JComboBox extends JComponent * This protected field is implementation specific. Do not access directly * or override. Use the accessor methods instead. * - * @see #isEditable + * @see #isEditable() * @see #setEditable */ protected boolean isEditable = false; diff --git a/src/java.desktop/share/classes/javax/swing/JList.java b/src/java.desktop/share/classes/javax/swing/JList.java index b68a94a779dc2..da67a89ee5fde 100644 --- a/src/java.desktop/share/classes/javax/swing/JList.java +++ b/src/java.desktop/share/classes/javax/swing/JList.java @@ -717,7 +717,7 @@ public int getFixedCellWidth() { * * @param width the width to be used for all cells in the list * @see #setPrototypeCellValue - * @see #setFixedCellWidth + * @see #getFixedCellWidth * @see JComponent#addPropertyChangeListener */ @BeanProperty(visualUpdate = true, description diff --git a/src/java.desktop/share/classes/javax/swing/JPopupMenu.java b/src/java.desktop/share/classes/javax/swing/JPopupMenu.java index 6de3ee7081275..069fc3d5c3a0d 100644 --- a/src/java.desktop/share/classes/javax/swing/JPopupMenu.java +++ b/src/java.desktop/share/classes/javax/swing/JPopupMenu.java @@ -542,7 +542,7 @@ public String getLabel() { * * @param label a string specifying the label for the popup menu * - * @see #setLabel + * @see #getLabel */ @BeanProperty(description = "The label for the popup menu.") diff --git a/src/java.desktop/share/classes/javax/swing/table/DefaultTableModel.java b/src/java.desktop/share/classes/javax/swing/table/DefaultTableModel.java index cdb3f29b76a11..822437a973e7e 100644 --- a/src/java.desktop/share/classes/javax/swing/table/DefaultTableModel.java +++ b/src/java.desktop/share/classes/javax/swing/table/DefaultTableModel.java @@ -517,7 +517,7 @@ public void setColumnIdentifiers(Object[] newIdentifiers) { * * @param columnCount the new number of columns in the model * - * @see #setColumnCount + * @see #setRowCount * @since 1.3 */ public void setColumnCount(int columnCount) { diff --git a/src/java.desktop/share/classes/javax/swing/text/View.java b/src/java.desktop/share/classes/javax/swing/text/View.java index 4aec8b55f7fa6..7fcc00caaac53 100644 --- a/src/java.desktop/share/classes/javax/swing/text/View.java +++ b/src/java.desktop/share/classes/javax/swing/text/View.java @@ -349,7 +349,6 @@ public void setParent(View parent) { * returns 0. * * @return the number of views >= 0 - * @see View#getViewCount */ public int getViewCount() { return 0; @@ -698,7 +697,8 @@ public Shape modelToView(int p0, Position.Bias b0, int p1, Position.Bias b1, Sha * @param e the change information from the associated document * @param a the current allocation of the view * @param f the factory to use to rebuild if the view has children - * @see View#insertUpdate + * @see View#removeUpdate + * @see View#changedUpdate */ public void insertUpdate(DocumentEvent e, Shape a, ViewFactory f) { if (getViewCount() > 0) { @@ -739,7 +739,8 @@ public void insertUpdate(DocumentEvent e, Shape a, ViewFactory f) { * @param e the change information from the associated document * @param a the current allocation of the view * @param f the factory to use to rebuild if the view has children - * @see View#removeUpdate + * @see View#insertUpdate + * @see View#changedUpdate */ public void removeUpdate(DocumentEvent e, Shape a, ViewFactory f) { if (getViewCount() > 0) { @@ -780,7 +781,8 @@ public void removeUpdate(DocumentEvent e, Shape a, ViewFactory f) { * @param e the change information from the associated document * @param a the current allocation of the view * @param f the factory to use to rebuild if the view has children - * @see View#changedUpdate + * @see View#insertUpdate + * @see View#removeUpdate */ public void changedUpdate(DocumentEvent e, Shape a, ViewFactory f) { if (getViewCount() > 0) { @@ -802,7 +804,6 @@ public void changedUpdate(DocumentEvent e, Shape a, ViewFactory f) { * Fetches the model associated with the view. * * @return the view model, null if none - * @see View#getDocument */ public Document getDocument() { return elem.getDocument(); @@ -813,7 +814,7 @@ public Document getDocument() { * responsible. * * @return the starting offset into the model >= 0 - * @see View#getStartOffset + * @see View#getEndOffset */ public int getStartOffset() { return elem.getStartOffset(); @@ -824,7 +825,7 @@ public int getStartOffset() { * responsible. * * @return the ending offset into the model >= 0 - * @see View#getEndOffset + * @see View#getStartOffset */ public int getEndOffset() { return elem.getEndOffset(); @@ -836,7 +837,6 @@ public int getEndOffset() { * entire portion of the element. * * @return the subject - * @see View#getElement */ public Element getElement() { return elem; @@ -1339,7 +1339,7 @@ protected void updateLayout(DocumentEvent.ElementChange ec, * @return the bounding box of the given position is returned * @throws BadLocationException if the given position does * not represent a valid location in the associated document - * @see View#modelToView + * @see View#viewToModel * @deprecated */ @Deprecated @@ -1357,7 +1357,7 @@ public Shape modelToView(int pos, Shape a) throws BadLocationException { * @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 - * @see View#viewToModel + * @see View#modelToView * @deprecated */ @Deprecated