Constructor | Description |
---|
JToggleButton() | It creates an initially unselected toggle button without setting the text or image. |
JToggleButton(Action a) | It creates a toggle button where properties are taken from the Action supplied. |
JToggleButton(Icon icon) | It creates an initially unselected toggle button with the specified image but no text. |
JToggleButton(Icon icon, boolean selected) | It creates a toggle button with the specified image and selection state, but no text. |
JToggleButton(String text) | It creates an unselected toggle button with the specified text. |
JToggleButton(String text, boolean selected) | It creates a toggle button with the specified text and selection state. |
JToggleButton(String text, Icon icon) | It creates a toggle button that has the specified text and image, and that is initially unselected. |
JToggleButton(String text, Icon icon, boolean selected) | It creates a toggle button with the specified text, image, and selection state. |