TextArea.TextArea

TextArea.TextArea

Class Overview | Class Members | This Package | All Packages

Syntax 1
public TextArea()
Description
Constructs a new text area. This text area is created with both vertical and horizontal scroll bars.



Syntax 2
public TextArea( String text )
Parameters
text
the text to be displayed.
Description
Constructs a new text area with the specified text. This text area is created with both vertical and horizontal scroll bars.



Syntax 3
public TextArea( int rows, int columns )
Parameters
rows
the number of rows
columns
the number of columns
Description
Constructs a new empty TextArea with the specified number of rows and columns.



Syntax 4
public TextArea( String text, int rows, int columns )
Parameters
text
the text to be displayed.
rows
the number of rows.
columns
the number of columns.
Description
Constructs a new text area with the specified text, and with the specified number of rows and columns. This text area is created with both vertical and horizontal scroll bars.



Syntax 5
public TextArea( String text, int rows, int columns, int scrollbars )
Parameters
text
the text to be displayed.
rows
the number of rows.
columns
the number of columns.
scrollbars
a constant that determines what scrollbars are created to view the text area.
Description
Constructs a new text area with the specified text, and with the rows, columns, and scroll bar visibility as specified.

The TextArea class defines several constants that can be supplied as values for the scrollbars argument: SCROLLBARS_BOTH, SCROLLBARS_VERTICAL_ONLY, SCROLLBARS_HORIZONTAL_ONLY, and SCROLLBARS_NONE.