JTerminal documentation Help

TextField

A text field is used to read a text input as line.

TextFieldComponent textFieldComponent = new TextFieldComponent(); textFieldComponent.value("Hello");
textfield example

Methods

Method

Description

void value(String)

Sets the input value

String value()

Returns the input value

void limitLength(int)

Sets maximum length of input buffer

int limitLength()

Returns maximum length of input buffer

void cursor(int)

Sets text cursor

int cursor()

Returns text cursor

String displayValue()

Returns current displaying text

Events

Event

Description

TextChangedEvent

Event on change of input value

Last modified: 01 Juni 2025