< prev index next >

src/java.desktop/share/classes/javax/swing/JTextPane.java

Print this page
rev 60127 : 8249205: Remove unnecessary trademark symbols


  48  * be embedded in the flow of text.
  49  *
  50  * <dl>
  51  * <dt><b>Newlines</b>
  52  * <dd>
  53  * For a discussion on how newlines are handled, see
  54  * <a href="text/DefaultEditorKit.html">DefaultEditorKit</a>.
  55  * </dl>
  56  *
  57  * <p>
  58  * <strong>Warning:</strong> Swing is not thread safe. For more
  59  * information see <a
  60  * href="package-summary.html#threading">Swing's Threading
  61  * Policy</a>.
  62  * <p>
  63  * <strong>Warning:</strong>
  64  * Serialized objects of this class will not be compatible with
  65  * future Swing releases. The current serialization support is
  66  * appropriate for short term storage or RMI between applications running
  67  * the same version of Swing.  As of 1.4, support for long term storage
  68  * of all JavaBeans&trade;
  69  * has been added to the <code>java.beans</code> package.
  70  * Please see {@link java.beans.XMLEncoder}.
  71  *
  72  * @author  Timothy Prinzing
  73  * @see javax.swing.text.StyledEditorKit
  74  * @since 1.2
  75  */
  76 @JavaBean(description = "A text component that can be marked up with attributes that are graphically represented.")
  77 @SwingContainer
  78 @SuppressWarnings("serial") // Same-version serialization only
  79 public class JTextPane extends JEditorPane {
  80 
  81     /**
  82      * Creates a new <code>JTextPane</code>.  A new instance of
  83      * <code>StyledEditorKit</code> is
  84      * created and set, and the document model set to <code>null</code>.
  85      */
  86     public JTextPane() {
  87         super();
  88         EditorKit editorKit = createDefaultEditorKit();




  48  * be embedded in the flow of text.
  49  *
  50  * <dl>
  51  * <dt><b>Newlines</b>
  52  * <dd>
  53  * For a discussion on how newlines are handled, see
  54  * <a href="text/DefaultEditorKit.html">DefaultEditorKit</a>.
  55  * </dl>
  56  *
  57  * <p>
  58  * <strong>Warning:</strong> Swing is not thread safe. For more
  59  * information see <a
  60  * href="package-summary.html#threading">Swing's Threading
  61  * Policy</a>.
  62  * <p>
  63  * <strong>Warning:</strong>
  64  * Serialized objects of this class will not be compatible with
  65  * future Swing releases. The current serialization support is
  66  * appropriate for short term storage or RMI between applications running
  67  * the same version of Swing.  As of 1.4, support for long term storage
  68  * of all JavaBeans
  69  * has been added to the <code>java.beans</code> package.
  70  * Please see {@link java.beans.XMLEncoder}.
  71  *
  72  * @author  Timothy Prinzing
  73  * @see javax.swing.text.StyledEditorKit
  74  * @since 1.2
  75  */
  76 @JavaBean(description = "A text component that can be marked up with attributes that are graphically represented.")
  77 @SwingContainer
  78 @SuppressWarnings("serial") // Same-version serialization only
  79 public class JTextPane extends JEditorPane {
  80 
  81     /**
  82      * Creates a new <code>JTextPane</code>.  A new instance of
  83      * <code>StyledEditorKit</code> is
  84      * created and set, and the document model set to <code>null</code>.
  85      */
  86     public JTextPane() {
  87         super();
  88         EditorKit editorKit = createDefaultEditorKit();


< prev index next >