public class JButton extends Component
This class provides a minimal stub implementation of a button component to allow the NDT tool to run in headless environments. The button can have an action listener but provides no actual click functionality.
All operations are no-ops, maintaining API compatibility without requiring an actual graphical display system.
| Modifier and Type | Method and Description |
|---|---|
void | addActionListener(ActionListener l) |
add, add, add, addMouseListener, addWindowListener, getToolkit, pack, repaint, setBorder, setCursor, setEditable, setEnabled, setForeground, setLayout, setLayout, setPreferredSize, setResizable, setSize, setTitle, setVisiblepublic JButton(String name)
name - button labelpublic void addActionListener(ActionListener l)
l - action listener