public ToggleButton (String text)

Creates a toggle button with the specified text as its label.

Parameters:
text    A text string for its label.