JTextArea

Palette category
Swing
Palette bean
JTextArea
Project
JFC class libraries
Package
com.sun.java.swing
Type
JTextArea

Use a JTextArea bean to provide a large area for text entry or presentation. A text area can contain multiple lines of text. To make a JTextArea bean scrollable, drop it in a JScrollPane. You can use a focus accelerator to provide quick accessability to the text area.

Use a TextArea bean, rather than a JTextArea bean, if you want to use it in an AWT container. Although Swing and AWT beans can be mixed, it is inadvisable.


Related procedures
Adding a Text Component

Related references
Text Beans
Beans for Visual Composition