106 * information see <a
107 * href="package-summary.html#threading">Swing's Threading
108 * Policy</a>.
109 * <p>
110 * <strong>Warning:</strong>
111 * Serialized objects of this class will not be compatible with
112 * future Swing releases. The current serialization support is
113 * appropriate for short term storage or RMI between applications running
114 * the same version of Swing. As of 1.4, support for long term storage
115 * of all JavaBeans™
116 * has been added to the <code>java.beans</code> package.
117 * Please see {@link java.beans.XMLEncoder}.
118 *
119 * @beaninfo
120 * attribute: isContainer false
121 * description: A multi-line area that displays plain text.
122 *
123 * @author Timothy Prinzing
124 * @see JTextPane
125 * @see JEditorPane
126 */
127 @SuppressWarnings("serial") // Same-version serialization only
128 public class JTextArea extends JTextComponent {
129
130 /**
131 * @see #getUIClassID
132 * @see #readObject
133 */
134 private static final String uiClassID = "TextAreaUI";
135
136 /**
137 * Constructs a new TextArea. A default model is set, the initial string
138 * is null, and rows/columns are set to 0.
139 */
140 public JTextArea() {
141 this(null, null, 0, 0);
142 }
143
144 /**
145 * Constructs a new TextArea with the specified text displayed.
|
106 * information see <a
107 * href="package-summary.html#threading">Swing's Threading
108 * Policy</a>.
109 * <p>
110 * <strong>Warning:</strong>
111 * Serialized objects of this class will not be compatible with
112 * future Swing releases. The current serialization support is
113 * appropriate for short term storage or RMI between applications running
114 * the same version of Swing. As of 1.4, support for long term storage
115 * of all JavaBeans™
116 * has been added to the <code>java.beans</code> package.
117 * Please see {@link java.beans.XMLEncoder}.
118 *
119 * @beaninfo
120 * attribute: isContainer false
121 * description: A multi-line area that displays plain text.
122 *
123 * @author Timothy Prinzing
124 * @see JTextPane
125 * @see JEditorPane
126 * @since 1.2
127 */
128 @SuppressWarnings("serial") // Same-version serialization only
129 public class JTextArea extends JTextComponent {
130
131 /**
132 * @see #getUIClassID
133 * @see #readObject
134 */
135 private static final String uiClassID = "TextAreaUI";
136
137 /**
138 * Constructs a new TextArea. A default model is set, the initial string
139 * is null, and rows/columns are set to 0.
140 */
141 public JTextArea() {
142 this(null, null, 0, 0);
143 }
144
145 /**
146 * Constructs a new TextArea with the specified text displayed.
|