public class JCheckBox extends Component
This class provides a minimal stub implementation of a checkbox component to allow the NDT tool to run in headless environments. The checkbox maintains selection state but provides no actual visual representation.
All operations except selection state tracking are no-ops, maintaining API compatibility without requiring an actual graphical display system.
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean | selected |
| Modifier and Type | Method and Description |
|---|---|
void | addActionListener(ActionListener l)Action listener. |
boolean | isSelected()Selection state. |
void | setSelected(boolean b)Selection state. |
add, add, add, addMouseListener, addWindowListener, getToolkit, pack, repaint, setBorder, setCursor, setEditable, setEnabled, setForeground, setLayout, setLayout, setPreferredSize, setResizable, setSize, setTitle, setVisiblepublic JCheckBox(String str)
str - checkbox labelpublic void addActionListener(ActionListener l)
l - action listenerpublic boolean isSelected()
public void setSelected(boolean b)
b - selection state