JTerminal documentation Help

CheckBox

The CheckBox class is a graphical element for displaying and toggling between 2 states.

CheckBoxComponent checkBoxComponent = new CheckBoxComponent("CheckBox"); checkBoxComponent.checked(...);
checkbox example

Methods

Method

Description

void text(String)

Sets the display text

String text()

Returns the display text

int preferredWidth()

Returns the recommend width

void checked(boolean)

Sets the status

boolean checked()

Returns the current status

Events

Event

Description

CheckBoxChangeEvent

Event on change of status

Last modified: 01 Juni 2025