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

Button

JFXButton

The JFXButton is a material design compliant implementation of a button for JavaFX.

Alt text

Styling JFXButton

JFXButton uses the default style class .jfx-button and defines the following CSS properties.

CSS Property Values Default
-jfx-button-type FLAT, RAISED FLAT
-jfx-disable-visual-focus true, false false
/*Flat button example */
.jfx-button {
     -jfx-button-type: FLAT;
     -fx-background-color: white;
     -fx-text-fill: black;
}

/*Raised button example */
.jfx-button {
     -jfx-button-type: RAISED;
     -fx-background-color: blue;
     -fx-text-fill: white;
}
  • Introduction
  • Basic Components
  • Advanced Components
    • Badge
    • Decorator
    • Dialog
    • Drawer
    • List View
    • Masonry
    • Pickers
    • Popup
    • Snack Bar
    • Tree Table View
Clone this wiki locally