public interface Control
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(ActionListener listener)
Adds a listener to be notified whenever the state of this control
changes, presumably as a result of user interaction.
|
Icon |
getControlIcon()
Returns an icon to represent this control, visible in the stack.
|
String |
getControlLabel()
Returns a short string to label this control, visible in the stack.
|
JComponent |
getPanel()
Returns the GUI component that is the business end of this control.
|
void |
removeActionListener(ActionListener listener)
Removes a listener which was previously added.
|
JComponent getPanel()
String getControlLabel()
Icon getControlIcon()
void addActionListener(ActionListener listener)
listener
- listener to addvoid removeActionListener(ActionListener listener)
listener
- to removeCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.