Checkbox

Checkbox lets users select or toggle an option.

For the complete API reference, see https://doc.jdance.org.

Overview

A checked and an unchecked option.

CODE
BasicLayout layout = new BasicLayout(BasicLayout.Direction.VERTICAL);
layout.setGap(8);
Checkbox first = new Checkbox();
first.setName("first");
first.setChecked(true);
Checkbox second = new Checkbox();
second.setName("second");
layout.add(first);
layout.add(second);
RESULT