JTextArea

Methods
15
Fields
1

Getting one

JTextArea.new(…)

Methods

MethodReturnsDescription
getLineWrap()booleanWhether long lines wrap.
setLineWrap(boolean)()Wraps long lines, or not.
getWrapStyleWord()booleanWhether wrapping breaks at words.
setWrapStyleWord(boolean)()Breaks wrapped lines at words (true) or anywhere (false).
getTabSize()numberThe tab width in spaces.
setTabSize(number)()Sets the tab width in spaces.
getRows()numberThe rows it asks for (0: as many as the text has).
setRows(number)()Sets the rows it asks for.
getColumns()numberThe columns it asks for (0: as wide as the text).
setColumns(number)()Sets the columns it asks for.
getLineCount()numberThe number of lines (paragraphs, not wrapped rows).
append(string?)()Appends str to the text (an insertion at the end, heard by the document's listeners).
new(string?)JTextArea() -> JTextArea: An empty text area.
new(number, number)JTextArea
new(string?, number, number)JTextArea
init(JTextArea, string?)()(JTextArea) -> (): An empty text area.
init(JTextArea, number, number)()
init(JTextArea, string?, number, number)()
isInstance(any)booleanWhether obj is a JTextArea object, a class(JTextArea) subclass's included.

Fields

FieldTypeDescription
superJTextComponentClassJTextComponent's class table: the base class.

Returned by

MethodReturnsDescription
JTextAreaClass.newJTextArea() -> JTextArea: An empty text area.

Method details

getRows

getRows: (JTextArea) -> number

The rows it asks for (0: as many as the text has).

append

append: (JTextArea, string?) -> ()

Appends str to the text (an insertion at the end, heard by the document's listeners).

new

new: ((string?) -> JTextArea) & ((number, number) -> JTextArea) & ((string?, number, number) -> JTextArea)

() -> JTextArea: An empty text area.

(string?) -> JTextArea: A text area showing text.

(number, number) -> JTextArea: An empty text area of rows and columns (its preferred size).

(string?, number, number) -> JTextArea: A text area showing text, of rows and columns.

init

init: ((JTextArea, string?) -> ()) & ((JTextArea, number, number) -> ()) & ((JTextArea, string?, number, number) -> ())

(JTextArea) -> (): An empty text area.

(JTextArea, string?) -> (): A text area showing text.

(JTextArea, number, number) -> (): An empty text area of rows and columns (its preferred size).

(JTextArea, string?, number, number) -> (): A text area showing text, of rows and columns.

isInstance

isInstance: (any) -> boolean

Whether obj is a JTextArea object, a class(JTextArea) subclass's included.