Use www.google.com search Jbutton, toggle button and I got this http://java.sun.com/products/jlf/dg/higq.htm
toggle button
A button that alternates between two states. For example, a user
might click one toggle button in a toolbar to turn italics on and
off. A single toggle button has checkbox behavior; a programmatically
grouped set of toggle buttons can be given the mutually exclusive
behavior of radio buttons. Toggle buttons are created using the
JToggleButton component. See also toolbar butt