Fields
Name | Description |
---|---|
SCROLLBARS_BOTH | Create and display both vertical and horizontal scrollbars. |
SCROLLBARS_HORIZONTAL_ONLY | Create and display horizontal scrollbar only. |
SCROLLBARS_NONE | Do not create or display any scrollbars for the text area. |
SCROLLBARS_VERTICAL_ONLY | Create and display vertical scrollbar only. |
Constructors
Name | Description |
---|---|
TextArea() | Constructs a new text area. |
TextArea(int, int) | Constructs a new empty TextArea with the specified number of rows and columns. |
TextArea(String) | Constructs a new text area with the specified text. |
TextArea(String, int, int) | Constructs a new text area with the specified text, and with the specified number of rows and columns. |
TextArea(String, int, int, int) | Constructs a new text area with the specified text, and with the rows, columns, and scroll bar visibility as specified. |
Methods
Name | Description |
---|---|
addNotify() | Creates the TextArea's peer. |
append(String) | Appends the given text to the text area's current text. |
appendText(String) | Deprecated. |
getColumns() | Gets the number of columns in this text area. |
getMinimumSize() | Determines the minimum size of this text area. |
getMinimumSize(int, int) | Determines the minimum size of a text area with the specified number of rows and columns. |
getPreferredSize() | Determines the preferred size of this text area. |
getPreferredSize(int, int) | Determines the preferred size of a text area with the specified number of rows and columns. |
getRows() | Gets the number of rows in the text area. |
getScrollbarVisibility() | Gets an enumerated value that indicates which scroll bars the text area uses. |
insert(String, int) | Inserts the specified text at the specified position in this text area. |
insertText(String, int) | Deprecated. |
minimumSize() | Deprecated. |
minimumSize(int, int) | Deprecated. |
paramString() | Returns the parameter string representing the state of this text area. |
preferredSize() | Deprecated. |
preferredSize(int, int) | Deprecated. |
replaceRange(String, int, int) | Replaces text between the indicated start and end positions with the specified replacement text. |
replaceText(String, int, int) | Deprecated. |
setColumns(int) | Sets the number of columns for this text area. |
setRows(int) | Sets the number of rows for this text area. |