### Run JFoenix Demo
Source: https://github.com/sshahine/jfoenix/blob/master/README.md
Execute this command to run the main demo of JFoenix.
```bash
gradlew run
```
--------------------------------
### Build JFoenix
Source: https://github.com/sshahine/jfoenix/blob/master/README.md
Execute this command to build the JFoenix library.
```bash
gradlew build
```
--------------------------------
### Style JFXCheckBox with CSS
Source: https://github.com/sshahine/jfoenix/wiki/Checkbox
Apply custom colors to the checked and unchecked states of a JFXCheckBox. Also shows how to style the checkmark itself.
```css
.jfx-check-box {
-jfx-checked-color: red;
-jfx-unchecked-color: black;
}
/* Styling checkmark */
.jfx-check-box .mark {
-fx-border-color: white;
}
```
--------------------------------
### Include JFoenix in Gradle Project (Java 9+)
Source: https://github.com/sshahine/jfoenix/blob/master/README.md
Add this dependency to your Gradle project for Java 9 and above.
```groovy
repositories {
mavenCentral()
}
dependencies {
compile 'com.jfoenix:jfoenix:9.0.10'
}
```
--------------------------------
### Include JFoenix in Gradle Project (Java 8)
Source: https://github.com/sshahine/jfoenix/blob/master/README.md
Add this dependency to your Gradle project for Java 8.
```groovy
repositories {
mavenCentral()
}
dependencies {
compile 'com.jfoenix:jfoenix:8.0.10'
}
```
--------------------------------
### Smooth Scrolling Utility
Source: https://github.com/sshahine/jfoenix/wiki/Scroll-Pane
This utility method can be applied to any scroll pane, including JFX and non-JFX ones, to enable smooth scrolling behavior.
```java
JFXScrollPane.smoothScrolling(anyScrollPane);
```
--------------------------------
### Include JFoenix in Maven Project (Java 9+)
Source: https://github.com/sshahine/jfoenix/blob/master/README.md
Add this dependency to your Maven project for Java 9 and above.
```xml
com.jfoenix
jfoenix
9.0.10
```
--------------------------------
### Include JFoenix in Maven Project (Java 8)
Source: https://github.com/sshahine/jfoenix/blob/master/README.md
Add this dependency to your Maven project for Java 8.
```xml
com.jfoenix
jfoenix
8.0.10
```
--------------------------------
### Flat JFXButton Styling
Source: https://github.com/sshahine/jfoenix/wiki/Button
Applies flat styling to a JFXButton, setting its type to FLAT, background color to white, and text color to black. Use this for standard flat button appearances.
```css
.jfx-button {
-jfx-button-type: FLAT;
-fx-background-color: white;
-fx-text-fill: black;
}
```
--------------------------------
### JFXToggleButton CSS Styling
Source: https://github.com/sshahine/jfoenix/wiki/Toggle-Button
Applies custom colors and size to the JFXToggleButton using CSS. Use this to match your application's theme.
```css
.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;
}
```
--------------------------------
### Raised JFXButton Styling
Source: https://github.com/sshahine/jfoenix/wiki/Button
Applies raised styling to a JFXButton, setting its type to RAISED, background color to blue, and text color to white. This is suitable for buttons that require a lifted appearance.
```css
.jfx-button {
-jfx-button-type: RAISED;
-fx-background-color: blue;
-fx-text-fill: white;
}
```
--------------------------------
### Styling JFXSlider Filled Track
Source: https://github.com/sshahine/jfoenix/wiki/Slider
Customize the appearance of the filled portion of the slider's track. This targets the '.colored-track' pseudo-class.
```css
.jfx-slider > .colored-track {
-fx-background-color: green;
}
```
--------------------------------
### Styling JFXSlider Track
Source: https://github.com/sshahine/jfoenix/wiki/Slider
Customize the background color of the slider's track. This targets the default style class '.jfx-slider' and its '.track' pseudo-class.
```css
.jfx-slider > .track {
-fx-background-color: yellow;
}
```
--------------------------------
### Styling JFXSlider Animated Thumb
Source: https://github.com/sshahine/jfoenix/wiki/Slider
Modify the background color of the animated thumb element. This targets the '.animated-thumb' pseudo-class.
```css
.jfx-slider > .animated-thumb {
-fx-background-color: green;
}
```
--------------------------------
### Styling JFXSlider Thumb
Source: https://github.com/sshahine/jfoenix/wiki/Slider
Change the background color of the slider's thumb. This targets the '.thumb' pseudo-class within the '.jfx-slider' style class.
```css
.jfx-slider > .thumb {
-fx-background-color: green;
}
```
--------------------------------
### CSS for Styling Scroll Bars
Source: https://github.com/sshahine/jfoenix/wiki/Scroll-Pane
This CSS can be applied to any scroll pane to achieve a material design look. It styles the track, thumb, and arrow buttons for both vertical and horizontal scroll bars.
```css
/*******************************************************************************
* *
* Scroll Bar *
* *
******************************************************************************/
.scroll-bar:vertical > .track-background, .scroll-bar:horizontal > .track-background {
-fx-background-color: #F1F1F1;
-fx-background-insets: 0.0;
}
.scroll-bar:vertical > .thumb, .scroll-bar:horizontal > .thumb {
-fx-background-color: #BCBCBC;
-fx-background-insets: 0.0;
-fx-background-radius: 1.0;
}
/* Up- and Down-Button Padding */
.scroll-bar:vertical > .increment-button, .scroll-bar:vertical > .decrement-button {
-fx-padding: 5 2 5 2;
}
/* Left- and Right-Button Padding */
.scroll-bar:horizontal > .increment-button, .scroll-bar:horizontal > .decrement-button {
-fx-padding: 2 5 2 5;
}
.scroll-bar > .increment-button, .scroll-bar > .decrement-button, .scroll-bar:hover > .increment-button, .scroll-bar:hover > .decrement-button {
-fx-background-color: transparent;
}
.scroll-bar > .increment-button > .increment-arrow, .scroll-bar > .decrement-button > .decrement-arrow {
-fx-background-color: rgb(150.0, 150.0, 150.0);
}
/* Up Arrow */
.scroll-bar:vertical > .increment-button > .increment-arrow {
-fx-shape: "M298 426h428l-214 214z";
}
/* Down Arrow */
.scroll-bar:vertical > .decrement-button > .decrement-arrow {
-fx-shape: "M298 598l214-214 214 214h-428z";
}
/* Right Arrow */
.scroll-bar:horizontal > .increment-button > .increment-arrow {
-fx-shape: "M0 428l0 -428l214 214l-214 214z";
}
/* Left Arrow */
.scroll-bar:horizontal > .decrement-button > .decrement-arrow {
-fx-shape: "M214 0l0 428l-214 -214l214 -214z";
}
/*******************************************************************************
* *
* Scroll Pane *
* *
******************************************************************************/
.scroll-pane {
-fx-background-insets: 0;
-fx-padding: 0;
}
.scroll-pane:focused {
-fx-background-insets: 0;
}
.scroll-pane .corner {
-fx-background-insets: 0;
}
```
--------------------------------
### Styling JFXSlider Value Text
Source: https://github.com/sshahine/jfoenix/wiki/Slider
Set the fill and stroke color for the slider's value text, typically displayed within the animated thumb. This targets the '.slider-value' class.
```css
.jfx-slider .slider-value {
-fx-fill: white;
-fx-stroke: white;
}
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.