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) |
boolean |
isSelected() |
void |
setSelected(boolean b) |
add, add, add, addMouseListener, addWindowListener, getToolkit, pack, repaint, setBorder, setCursor, setEditable, setEnabled, setForeground, setLayout, setLayout, setPreferredSize, setResizable, setSize, setTitle, setVisiblepublic JCheckBox(String str)
public void addActionListener(ActionListener l)
public boolean isSelected()
public void setSelected(boolean b)