javafx set custom css style code example
Example 1: add css to javafx fxml
.root {
-fx-background-color:lightgray;
}
Example 2: add css to javafx fxml
.sun-button {
-fx-graphic: url('./icons/sun.png');
}
.root {
-fx-background-color:lightgray;
}
.sun-button {
-fx-graphic: url('./icons/sun.png');
}