The JToggleButton represents button that can be toggled, similar to a check box.
JToggleButton
s can be placed wherever checkbox functionality is desired in a button. When the user presses a JToggleButton
, then the button stays visually pressed. When the user presses again, then it is visually unpressed.
Depending on the user's look and feel, the button may look like a normal button, or it may look completely different.