Code example for ToggleButton

Methods: isChecked, requestFocus, toggle