A
TextArea
is a scrollable multiline area for displaying text. It may be setup to be either editable or not editable through theTextComponent setEditable
method. Constructors allow you to specify the number of rows and columns as well as text to be displayed in the area.See the
TextArea
class in the java.awt package.Example:
TextArea lifeHistory = new TextArea ( "Your Life History", 10, 40 );