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. Although Swing and AWT beans can be mixed, it is inadvisable.
The following beans provide button components:
Bean | Description |
---|---|
JButton or Button | A push button, generally used to perform a function |
JCheckBox or Checkbox | A setting button that is checked when selected |
JRadioButton or CheckboxGroup | A radio button or group for mutually exclusive settings |
JToggleButton | A two-state push button that appears to be pushed in when selected |