VisualAge provides button beans from Swing and AWT packages. Basic button beans from the Abstract Windowing Toolkit (AWT) are provided in the Java class libraries project, in the java.awt package. Enhanced button beans from the Java Foundation Classes (JFC) library are provided in the JFC class libraries project, in the com.sun.java.swing package.
The following beans provide button components:
Bean | Description |
---|---|
JButton (Swing) or Button (AWT) | A push button, generally used to perform a function |
JCheckBox (Swing) or Checkbox (AWT) | A setting button that is checked when selected |
JRadioButton (Swing) or CheckboxGroup (AWT) | A radio button or group for mutually exclusive settings |
JToggleButton (Swing) | A two-state push button that appears to be pushed in when selected |