Use a JToggleButton bean
to provide a two-state push button. The button appears to be pushed in
when selected, and popped out when not selected. Use JToggleButton
beans in a button group for a set of mutually exclusive functions. When
the user selects an unselected button in the group, the previously selected
button is popped out.
Adding a button component
Sun's JToggleButton bean documentation
Button beans
Beans for visual composition