First UI Application
Set up the terminal instance:
UITerminal terminal = UITerminal.create();
Terminal.set(terminal);
terminal.title("Example UI");
Creation of new screen:
TermScreen screen = new TermScreen();
screen.backgroundColor(TerminalColor.BLUE);
terminal.openScreen(screen);
Add label component:
TermString ts = TermString.value("A label");
LabelComponent labelComponent = new LabelComponent(ts);
labelComponent.x(1);
labelComponent.y(1);
screen.add(labelComponent);
screen.repaint(); //Required if screen is already opened

Last modified: 01 Juni 2025