diff --git a/src/share/classes/javax/swing/SwingUtilities.java b/src/share/classes/javax/swing/SwingUtilities.java index 06d59c68d7f5a2943837cf88bfaf922e632c71d4..1602eff01019e79c9f6c9720a46716698bb8648b 100644 --- a/src/share/classes/javax/swing/SwingUtilities.java +++ b/src/share/classes/javax/swing/SwingUtilities.java @@ -1274,8 +1274,7 @@ public class SwingUtilities implements SwingConstants *
* Additional documentation and examples for this method can be * found in - * How to Use Threads, - * in The Java Tutorial. + * Concurrency in Swing. *
* As of 1.3 this method is just a cover for java.awt.EventQueue.invokeLater()
.
*
@@ -1326,8 +1325,7 @@ public class SwingUtilities implements SwingConstants *
* Additional documentation and examples for this method can be * found in - * How to Use Threads, - * in The Java Tutorial. + * Concurrency in Swing. *
* As of 1.3 this method is just a cover for
* java.awt.EventQueue.invokeAndWait()
.
diff --git a/src/share/classes/javax/swing/SwingWorker.java b/src/share/classes/javax/swing/SwingWorker.java
index 8bad4c988a93567137047b29f701eea22843b012..294808188cd60740371f2586d3264da893f1bb43 100644
--- a/src/share/classes/javax/swing/SwingWorker.java
+++ b/src/share/classes/javax/swing/SwingWorker.java
@@ -50,8 +50,8 @@ import sun.swing.AccumulativeRunnable;
* When writing a multi-threaded application using Swing, there are
* two constraints to keep in mind:
* (refer to
- *
- * How to Use Threads
+ *
+ * Concurrency in Swing
* for more details):
*
More information on this topic can be found in the -Swing tutorial, +Swing tutorial, in particular the section on -How to Use Threads. +Concurrency in Swing.
* This method is thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. * * @param r the renderer to execute */ @@ -570,8 +570,8 @@ public abstract class AbstractDocument implements Document, Serializable { *
* This method is thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. * * @param offs the starting offset >= 0 * @param len the number of characters to remove >= 0 @@ -683,8 +683,8 @@ public abstract class AbstractDocument implements Document, Serializable { *
* This method is thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. * * @param offs the starting offset >= 0 * @param str the string to insert; does nothing with null/empty strings @@ -818,8 +818,8 @@ public abstract class AbstractDocument implements Document, Serializable { *
* This method is thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. * * @param offs the position in the model >= 0 * @return the position diff --git a/src/share/classes/javax/swing/text/DefaultCaret.java b/src/share/classes/javax/swing/text/DefaultCaret.java index 4cfddbe2fcd16b1901f325d37e922b1ecf455080..ecbfdf0d6f45e01447a699a3268fa18cf6e1ef1b 100644 --- a/src/share/classes/javax/swing/text/DefaultCaret.java +++ b/src/share/classes/javax/swing/text/DefaultCaret.java @@ -237,8 +237,8 @@ public class DefaultCaret extends Rectangle implements Caret, FocusListener, Mou *
* This method is thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. */ protected final synchronized void repaint() { if (component != null) { diff --git a/src/share/classes/javax/swing/text/DefaultStyledDocument.java b/src/share/classes/javax/swing/text/DefaultStyledDocument.java index 8552eb9514ba0bcb97647dad6133ee6bb0016669..0ab766bd8135614d9b85aa2a991b8cbbc65db9c0 100644 --- a/src/share/classes/javax/swing/text/DefaultStyledDocument.java +++ b/src/share/classes/javax/swing/text/DefaultStyledDocument.java @@ -173,8 +173,8 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc *
* This method is thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. * * @param offset the starting offset >= 0 * @param data the element data @@ -426,8 +426,8 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc *
* This method is thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. * * @param pos the offset from the start of the document >= 0 * @param s the logical style to assign to the paragraph, null if none @@ -483,8 +483,8 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc *
* This method is thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. * * @param offset the offset in the document >= 0 * @param length the length >= 0 @@ -536,8 +536,8 @@ public class DefaultStyledDocument extends AbstractDocument implements StyledDoc *
* This method is thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. * * @param offset the offset into the paragraph >= 0 * @param length the number of characters affected >= 0 diff --git a/src/share/classes/javax/swing/text/JTextComponent.java b/src/share/classes/javax/swing/text/JTextComponent.java index 113fd587ec2262bff8c6b4cde3c6ae7b02db8dd0..274ae9decc5c1b1ed589efa14025f42a304ec926 100644 --- a/src/share/classes/javax/swing/text/JTextComponent.java +++ b/src/share/classes/javax/swing/text/JTextComponent.java @@ -2213,8 +2213,8 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A *
* This method is thread-safe, although most Swing methods are not. Please * see - * How to Use Threads for more information. + * HREF="http://download.oracle.com/javase/tutorial/uiswing/concurrency/index.html"> + * Concurrency in Swing for more information. * *
* Sample Usage. This code snippet shows a cross-platform print @@ -2471,8 +2471,8 @@ public abstract class JTextComponent extends JComponent implements Scrollable, A *
* This method is thread-safe, although most Swing methods are not. Please * see - * How to Use Threads for more information. + * HREF="http://download.oracle.com/javase/tutorial/uiswing/concurrency/index.html"> + * Concurrency in Swing for more information. * *
* The returned {@code Printable} can be printed on any thread. diff --git a/src/share/classes/javax/swing/text/PlainDocument.java b/src/share/classes/javax/swing/text/PlainDocument.java index 84dc6849f4832c8deebc98c94845fd627448660e..05fd22110fa5da79db0de32bb7315a45d336c1be 100644 --- a/src/share/classes/javax/swing/text/PlainDocument.java +++ b/src/share/classes/javax/swing/text/PlainDocument.java @@ -100,8 +100,8 @@ public class PlainDocument extends AbstractDocument { *
* This method is thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. * * @param offs the starting offset >= 0 * @param str the string to insert; does nothing with null/empty strings diff --git a/src/share/classes/javax/swing/text/StyleContext.java b/src/share/classes/javax/swing/text/StyleContext.java index c81b0f893c9c24ddd81bcc7140ad8109414e42cc..ca0eeea66d7a4f66885d33625746e35310dd73d7 100644 --- a/src/share/classes/javax/swing/text/StyleContext.java +++ b/src/share/classes/javax/swing/text/StyleContext.java @@ -292,8 +292,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon *
* This method is thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. * * @param old the old attribute set * @param name the non-null attribute name @@ -321,8 +321,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon *
* This method is thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. * * @param old the old attribute set * @param attr the attributes to add @@ -349,8 +349,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon *
* This method is thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. * * @param old the old set of attributes * @param name the non-null attribute name @@ -377,8 +377,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon *
* This method is thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. * * @param old the old attribute set * @param names the attribute names @@ -405,8 +405,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon *
* This method is thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. * * @param old the old attribute set * @param attrs the attributes @@ -445,8 +445,8 @@ public class StyleContext implements Serializable, AbstractDocument.AttributeCon *
* This method is thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. * * @param a the set to reclaim */ diff --git a/src/share/classes/javax/swing/text/html/HTMLDocument.java b/src/share/classes/javax/swing/text/html/HTMLDocument.java index 1ce7893afe48a69ee652ab03474633b1cbc05119..5fc8c0f2bf48fd00fd665bd10dfc945a978c9d32 100644 --- a/src/share/classes/javax/swing/text/html/HTMLDocument.java +++ b/src/share/classes/javax/swing/text/html/HTMLDocument.java @@ -474,8 +474,8 @@ public class HTMLDocument extends DefaultStyledDocument { *
* This method is thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. * * @param offset the offset into the paragraph (must be at least 0) * @param length the number of characters affected (must be at least 0) diff --git a/src/share/classes/sun/swing/PrintingStatus.java b/src/share/classes/sun/swing/PrintingStatus.java index 19b26dafadab08bd10dd2fbe3991adeeb6a6d22e..af3658bddef438c0acfef26faf8d142befa94a38 100644 --- a/src/share/classes/sun/swing/PrintingStatus.java +++ b/src/share/classes/sun/swing/PrintingStatus.java @@ -43,8 +43,8 @@ import java.lang.reflect.InvocationTargetException; *
* Methods of these class are thread safe, although most Swing methods * are not. Please see - * How - * to Use Threads for more information. + * Concurrency + * in Swing for more information. * * @author Alexander Potochkin * @since 1.6