Skip to content
koolskateguy89 edited this page Apr 29, 2021 · 4 revisions

Toggle Button

JFXToggleButton

The JFXToggleButton is a material design compliant implementation of a switch for JavaFX.

Alt text

Styling JFXToggleButton

JFXToggleButton uses the default style class .jfx-toggle-button, and defines the following CSS properties.

CSS Property Values Default
-jfx-toggle-color color #009688
-jfx-untoggle-color color #FAFAFA
-jfx-toggle-line-color color #77C2BB
-jfx-untoggle-line-color color #999999
-jfx-size number 10.0
-jfx-disable-visual-focus true, false false
.jfx-toggle-button {
     -jfx-toggle-color: #009688;
     -jfx-untoggle-color: #FAFAFA;
     -jfx-toggle-line-color: #77C2BB;
     -jfx-untoggle-line-color: #999999;
     -jfx-size: 10.0;
     -jfx-disable-visual-focus: false;
}
  • Introduction
  • Basic Components
  • Advanced Components
    • Badge
    • Decorator
    • Dialog
    • Drawer
    • List View
    • Masonry
    • Pickers
    • Popup
    • Snack Bar
    • Tree Table View
Clone this wiki locally