22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 package javax.swing;
26
27 import java.awt.*;
28 import java.awt.event.ActionEvent;
29
30 import java.io.ObjectOutputStream;
31 import java.io.ObjectInputStream;
32 import java.io.IOException;
33
34 import javax.swing.text.*;
35 import javax.swing.event.*;
36 import javax.swing.plaf.*;
37
38 /**
39 * A text component that can be marked up with attributes that are
40 * represented graphically.
41 * You can find how-to information and examples of using text panes in
42 * <a href="http://java.sun.com/docs/books/tutorial/uiswing/components/text.html">Using Text Components</a>,
43 * a section in <em>The Java Tutorial.</em>
44 *
45 * <p>
46 * This component models paragraphs
47 * that are composed of runs of character level attributes. Each
48 * paragraph may have a logical style attached to it which contains
49 * the default attributes to use if not overridden by attributes set
50 * on the paragraph or character run. Components and images may
51 * be embedded in the flow of text.
52 * <p>
53 * <dl>
54 * <dt><b><font size=+1>Newlines</font></b>
55 * <dd>
56 * For a discussion on how newlines are handled, see
57 * <a href="text/DefaultEditorKit.html">DefaultEditorKit</a>.
58 * </dl>
59 *
60 * <p>
61 * <strong>Warning:</strong> Swing is not thread safe. For more
62 * information see <a
|
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 package javax.swing;
26
27 import java.awt.*;
28 import java.awt.event.ActionEvent;
29
30 import java.io.ObjectOutputStream;
31 import java.io.ObjectInputStream;
32 import java.io.IOException;
33
34 import javax.swing.text.*;
35 import javax.swing.event.*;
36 import javax.swing.plaf.*;
37
38 /**
39 * A text component that can be marked up with attributes that are
40 * represented graphically.
41 * You can find how-to information and examples of using text panes in
42 * <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/text.html">Using Text Components</a>,
43 * a section in <em>The Java Tutorial.</em>
44 *
45 * <p>
46 * This component models paragraphs
47 * that are composed of runs of character level attributes. Each
48 * paragraph may have a logical style attached to it which contains
49 * the default attributes to use if not overridden by attributes set
50 * on the paragraph or character run. Components and images may
51 * be embedded in the flow of text.
52 * <p>
53 * <dl>
54 * <dt><b><font size=+1>Newlines</font></b>
55 * <dd>
56 * For a discussion on how newlines are handled, see
57 * <a href="text/DefaultEditorKit.html">DefaultEditorKit</a>.
58 * </dl>
59 *
60 * <p>
61 * <strong>Warning:</strong> Swing is not thread safe. For more
62 * information see <a
|