public class JComboBox extends Component
This class provides a minimal stub implementation of a dropdown combo box component to allow the NDT tool to run in headless environments. The combo box maintains selection index but provides no actual dropdown functionality.
All operations except index tracking are no-ops, maintaining API compatibility without requiring an actual graphical display system.
| Constructor and Description |
|---|
JComboBox() |
| Modifier and Type | Method and Description |
|---|---|
void |
addItem(String str) |
int |
getSelectedIndex() |
void |
setSelectedIndex(int i) |
add, add, add, addMouseListener, addWindowListener, getToolkit, pack, repaint, setBorder, setCursor, setEditable, setEnabled, setForeground, setLayout, setLayout, setPreferredSize, setResizable, setSize, setTitle, setVisiblepublic void addItem(String str)
public int getSelectedIndex()
public void setSelectedIndex(int i)