# HG changeset patch # User rupashka # Date 1294739493 -10800 # Node ID 2e05332a8f5c1d8a46861a6146f4062dac39f23b # Parent bcc54a3c2825b6adf13b9d7af82a5dd2b9663973 6589952: Swing: dead links in API documentation Reviewed-by: alexp diff -r bcc54a3c2825 -r 2e05332a8f5c jdk/src/share/classes/javax/swing/AbstractButton.java --- a/jdk/src/share/classes/javax/swing/AbstractButton.java Tue Jan 04 23:41:13 2011 -0800 +++ b/jdk/src/share/classes/javax/swing/AbstractButton.java Tue Jan 11 12:51:33 2011 +0300 @@ -1335,7 +1335,6 @@ * * @param a the button's action * @since 1.3 - * @see Actions * @see Action * @see #setAction */ diff -r bcc54a3c2825 -r 2e05332a8f5c jdk/src/share/classes/javax/swing/JEditorPane.java --- a/jdk/src/share/classes/javax/swing/JEditorPane.java Tue Jan 04 23:41:13 2011 -0800 +++ b/jdk/src/share/classes/javax/swing/JEditorPane.java Tue Jan 11 12:51:33 2011 +0300 @@ -145,8 +145,8 @@ *
  • * One way is to specify the character set as a parameter of the MIME * type. This will be established by a call to the - * setContentType method. If the content - * is loaded by the setPage method the content + * {@link #setContentType setContentType} method. If the content + * is loaded by the {@link #setPage setPage} method the content * type will have been set according to the specification of the URL. * It the file is loaded directly, the content type would be expected to * have been set prior to loading. diff -r bcc54a3c2825 -r 2e05332a8f5c jdk/src/share/classes/javax/swing/SizeSequence.java --- a/jdk/src/share/classes/javax/swing/SizeSequence.java Tue Jan 04 23:41:13 2011 -0800 +++ b/jdk/src/share/classes/javax/swing/SizeSequence.java Tue Jan 11 12:51:33 2011 +0300 @@ -132,7 +132,7 @@ * can use insertEntries or setSizes. * * @see #insertEntries - * @see #setSizes + * @see #setSizes(int[]) */ public SizeSequence() { a = emptyArray; diff -r bcc54a3c2825 -r 2e05332a8f5c jdk/src/share/classes/javax/swing/TransferHandler.java --- a/jdk/src/share/classes/javax/swing/TransferHandler.java Tue Jan 04 23:41:13 2011 -0800 +++ b/jdk/src/share/classes/javax/swing/TransferHandler.java Tue Jan 11 12:51:33 2011 +0300 @@ -344,7 +344,7 @@ * * @return the drop location * @throws IllegalStateException if this is not a drop - * @see #isDrop + * @see #isDrop() */ public DropLocation getDropLocation() { assureIsDrop(); @@ -380,7 +380,7 @@ * * @param showDropLocation whether or not to indicate the drop location * @throws IllegalStateException if this is not a drop - * @see #isDrop + * @see #isDrop() */ public void setShowDropLocation(boolean showDropLocation) { assureIsDrop(); @@ -406,7 +406,7 @@ * @see #getDropAction * @see #getUserDropAction * @see #getSourceDropActions - * @see #isDrop + * @see #isDrop() */ public void setDropAction(int dropAction) { assureIsDrop(); @@ -440,7 +440,7 @@ * @throws IllegalStateException if this is not a drop * @see #setDropAction * @see #getUserDropAction - * @see #isDrop + * @see #isDrop() */ public int getDropAction() { return dropAction == -1 ? getUserDropAction() : dropAction; @@ -468,7 +468,7 @@ * @throws IllegalStateException if this is not a drop * @see #setDropAction * @see #getDropAction - * @see #isDrop + * @see #isDrop() */ public int getUserDropAction() { assureIsDrop(); @@ -501,7 +501,7 @@ * * @return the drag source's supported drop actions * @throws IllegalStateException if this is not a drop - * @see #isDrop + * @see #isDrop() */ public int getSourceDropActions() { assureIsDrop(); diff -r bcc54a3c2825 -r 2e05332a8f5c jdk/src/share/classes/javax/swing/event/InternalFrameAdapter.java --- a/jdk/src/share/classes/javax/swing/event/InternalFrameAdapter.java Tue Jan 04 23:41:13 2011 -0800 +++ b/jdk/src/share/classes/javax/swing/event/InternalFrameAdapter.java Tue Jan 11 12:51:33 2011 +0300 @@ -32,8 +32,7 @@ * equivalent to the WindowAdapter class in the AWT. *

    * See How to Write an Internal Frame Listener - * in The Java Tutorial and - * The Java Class Libraries (update) + * in The Java Tutorial * * @see InternalFrameEvent * @see InternalFrameListener diff -r bcc54a3c2825 -r 2e05332a8f5c jdk/src/share/classes/javax/swing/event/InternalFrameListener.java --- a/jdk/src/share/classes/javax/swing/event/InternalFrameListener.java Tue Jan 04 23:41:13 2011 -0800 +++ b/jdk/src/share/classes/javax/swing/event/InternalFrameListener.java Tue Jan 11 12:51:33 2011 +0300 @@ -33,9 +33,7 @@ * in the AWT. *

    * See How to Write an Internal Frame Listener - * in The Java Tutorial and - * The Java Class Libraries (update) - * for further documentation. + * in The Java Tutorial for further documentation. * * @see java.awt.event.WindowListener * diff -r bcc54a3c2825 -r 2e05332a8f5c jdk/src/share/classes/javax/swing/plaf/multi/doc-files/multi_tsc.html --- a/jdk/src/share/classes/javax/swing/plaf/multi/doc-files/multi_tsc.html Tue Jan 04 23:41:13 2011 -0800 +++ b/jdk/src/share/classes/javax/swing/plaf/multi/doc-files/multi_tsc.html Tue Jan 11 12:51:33 2011 +0300 @@ -66,7 +66,7 @@ Before reading further, you should be familiar with the concept of pluggable look and feels. For basic information, see -Choosing the Look and Feel, +How to Set the Look and Feel, a section in The Java Tutorial. For architectural details, you can read diff -r bcc54a3c2825 -r 2e05332a8f5c jdk/src/share/classes/javax/swing/plaf/synth/doc-files/synthFileFormat.html --- a/jdk/src/share/classes/javax/swing/plaf/synth/doc-files/synthFileFormat.html Tue Jan 04 23:41:13 2011 -0800 +++ b/jdk/src/share/classes/javax/swing/plaf/synth/doc-files/synthFileFormat.html Tue Jan 11 12:51:33 2011 +0300 @@ -91,7 +91,7 @@

     <!ELEMENT style (property | defaultsProperty | state | font | graphicsUtils |
    -                 insets | painter | imagePainter | opaque | (%beansPersistance;) |
    +                 insets | painter | imagePainter | opaque | (%beansPersistance;) |
                      imageIcon)*>
     <!ATTLIST style
               id              ID          #IMPLIED
    @@ -250,8 +250,8 @@
         

    Defines the font for the current state, or style. You must - specify either an idref or a - name and size. + specify either an idref or a + name and size.

    The following example creates a style with a Font of @@ -797,7 +797,7 @@ path CDATA #REQUIRED sourceInsets CDATA #IMPLIED destinationInsets CDATA #IMPLIED - paintCenter (true|false) "true" + paintCenter (true|false) "true" stretch (true|false) "true" center (true|false) "false" > diff -r bcc54a3c2825 -r 2e05332a8f5c jdk/src/share/classes/javax/swing/text/AsyncBoxView.java --- a/jdk/src/share/classes/javax/swing/text/AsyncBoxView.java Tue Jan 04 23:41:13 2011 -0800 +++ b/jdk/src/share/classes/javax/swing/text/AsyncBoxView.java Tue Jan 11 12:51:33 2011 +0300 @@ -384,7 +384,7 @@ /** * Loads all of the children to initialize the view. - * This is called by the setParent + * This is called by the {@link #setParent setParent} * method. Subclasses can reimplement this to initialize * their child views in a different manner. The default * implementation creates a child view for each diff -r bcc54a3c2825 -r 2e05332a8f5c jdk/src/share/classes/javax/swing/text/DefaultCaret.java --- a/jdk/src/share/classes/javax/swing/text/DefaultCaret.java Tue Jan 04 23:41:13 2011 -0800 +++ b/jdk/src/share/classes/javax/swing/text/DefaultCaret.java Tue Jan 11 12:51:33 2011 +0300 @@ -70,7 +70,7 @@ * will render a solid color as specified in the associated text component * in the SelectionColor property. This can easily be changed * by reimplementing the - * getSelectionHighlighter + * {@link #getSelectionPainter getSelectionPainter} * method. *

    * A customized caret appearance can be achieved by reimplementing diff -r bcc54a3c2825 -r 2e05332a8f5c jdk/src/share/classes/javax/swing/text/TableView.java --- a/jdk/src/share/classes/javax/swing/text/TableView.java Tue Jan 04 23:41:13 2011 -0800 +++ b/jdk/src/share/classes/javax/swing/text/TableView.java Tue Jan 11 12:51:33 2011 +0300 @@ -315,7 +315,7 @@ * updated along the minor axis. *

    * This is implemented to call the - * layoutColumns method, and then + * {@link #layoutColumns layoutColumns} method, and then * forward to the superclass to actually carry out the layout * of the tables rows. * diff -r bcc54a3c2825 -r 2e05332a8f5c jdk/src/share/classes/javax/swing/text/View.java --- a/jdk/src/share/classes/javax/swing/text/View.java Tue Jan 04 23:41:13 2011 -0800 +++ b/jdk/src/share/classes/javax/swing/text/View.java Tue Jan 11 12:51:33 2011 +0300 @@ -117,7 +117,7 @@ what it is prepared to deal with.

  • The coordinate system is the same as the hosting Component (i.e. the Component returned by the - getContainer method). + {@link #getContainer getContainer} method). This means a child view lives in the same coordinate system as the parent view unless the parent has explicitly changed the coordinate system. To schedule itself to be repainted a view can call repaint on the hosting @@ -180,9 +180,9 @@ starting from the root of the view hierarchy. The methods for doing this are:

    @@ -670,15 +670,15 @@ * spread out into the following calls that subclasses can * reimplement: *

      - *
    1. updateChildren is called + *
    2. {@link #updateChildren updateChildren} is called * if there were any changes to the element this view is * responsible for. If this view has child views that are * represent the child elements, then this method should do * whatever is necessary to make sure the child views correctly * represent the model. - *
    3. forwardUpdate is called + *
    4. {@link #forwardUpdate forwardUpdate} is called * to forward the DocumentEvent to the appropriate child views. - *
    5. updateLayout is called to + *
    6. {@link #updateLayout updateLayout} is called to * give the view a chance to either repair its layout, to reschedule * layout, or do nothing. *
    @@ -711,15 +711,15 @@ * spread out into the following calls that subclasses can * reimplement: *
      - *
    1. updateChildren is called + *
    2. {@link #updateChildren updateChildren} is called * if there were any changes to the element this view is * responsible for. If this view has child views that are * represent the child elements, then this method should do * whatever is necessary to make sure the child views correctly * represent the model. - *
    3. forwardUpdate is called + *
    4. {@link #forwardUpdate forwardUpdate} is called * to forward the DocumentEvent to the appropriate child views. - *
    5. updateLayout is called to + *
    6. {@link #updateLayout updateLayout} is called to * give the view a chance to either repair its layout, to reschedule * layout, or do nothing. *
    @@ -752,15 +752,15 @@ * spread out into the following calls that subclasses can * reimplement: *
      - *
    1. updateChildren is called + *
    2. {@link #updateChildren updateChildren} is called * if there were any changes to the element this view is * responsible for. If this view has child views that are * represent the child elements, then this method should do * whatever is necessary to make sure the child views correctly * represent the model. - *
    3. forwardUpdate is called + *
    4. {@link #forwardUpdate forwardUpdate} is called * to forward the DocumentEvent to the appropriate child views. - *
    5. updateLayout is called to + *
    6. {@link #updateLayout updateLayout} is called to * give the view a chance to either repair its layout, to reschedule * layout, or do nothing. *
    @@ -1186,7 +1186,7 @@ * simply messages the view with a call to insertUpdate, * removeUpdate, or changedUpdate depending * upon the type of the event. This is called by - * forwardUpdate to forward + * {@link #forwardUpdate forwardUpdate} to forward * the event to children that need it. * * @param v the child view to forward the event to diff -r bcc54a3c2825 -r 2e05332a8f5c jdk/src/share/classes/javax/swing/text/html/HTMLEditorKit.java --- a/jdk/src/share/classes/javax/swing/text/html/HTMLEditorKit.java Tue Jan 04 23:41:13 2011 -0800 +++ b/jdk/src/share/classes/javax/swing/text/html/HTMLEditorKit.java Tue Jan 11 12:51:33 2011 +0300 @@ -123,7 +123,7 @@ * to load. By default, this kit produces documents that will be * loaded asynchronously if loaded using JEditorPane.setPage. * This is controlled by a property on the document. The method - * createDefaultDocument can + * {@link #createDefaultDocument createDefaultDocument} can * be overriden to change this. The batching of work is done * by the HTMLDocument.HTMLReader class. The actual * work is done by the DefaultStyledDocument and @@ -558,7 +558,7 @@ * automatically or only FormSubmitEvent is fired. * By default it is set to true. * - * @see #isAutoFormSubmission + * @see #isAutoFormSubmission() * @see FormSubmitEvent * @since 1.5 */ diff -r bcc54a3c2825 -r 2e05332a8f5c jdk/src/share/classes/javax/swing/text/html/ParagraphView.java --- a/jdk/src/share/classes/javax/swing/text/html/ParagraphView.java Tue Jan 04 23:41:13 2011 -0800 +++ b/jdk/src/share/classes/javax/swing/text/html/ParagraphView.java Tue Jan 11 12:51:33 2011 +0300 @@ -61,7 +61,7 @@ *

    * This is implemented * to forward to the superclass as well as call the - * setPropertiesFromAttributes + * {@link #setPropertiesFromAttributes setPropertiesFromAttributes} * method to set the paragraph properties from the css * attributes. The call is made at this time to ensure * the ability to resolve upward through the parents diff -r bcc54a3c2825 -r 2e05332a8f5c jdk/src/share/classes/javax/swing/text/html/StyleSheet.java --- a/jdk/src/share/classes/javax/swing/text/html/StyleSheet.java Tue Jan 04 23:41:13 2011 -0800 +++ b/jdk/src/share/classes/javax/swing/text/html/StyleSheet.java Tue Jan 11 12:51:33 2011 +0300 @@ -51,7 +51,7 @@ *

    * The primary entry point for HTML View implementations * to get their attributes is the - * getViewAttributes + * {@link #getViewAttributes getViewAttributes} * method. This should be implemented to establish the * desired policy used to associate attributes with the view. * Each HTMLEditorKit (i.e. and therefore each associated