Java java.awt TextArea fields, constructors, methods, implement or subclass

Example usage for Java java.awt TextArea fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt TextArea.

The text is from its open source code.

Field

intSCROLLBARS_VERTICAL_ONLY
Create and display vertical scrollbar only.
intSCROLLBARS_NONE
Do not create or display any scrollbars for the text area.

Constructor

TextArea()
Constructs a new text area with the empty string as text.
TextArea(int rows, int columns)
Constructs a new text area with the specified number of rows and columns and the empty string as text.
TextArea(String text, int rows, int columns)
Constructs a new text area with the specified text, and with the specified number of rows and columns.
TextArea(String text, int rows, int columns, int scrollbars)
Constructs a new text area with the specified text, and with the rows, columns, and scroll bar visibility as specified.

Method

voidappend(String str)
Appends the given text to the text area's current text.
StringgetText()
Returns the text that is presented by this text component.
voidsetEditable(boolean b)
Sets the flag that determines whether or not this text component is editable.
voidsetText(String t)
Sets the text that is presented by this text component to be the specified text.