1//making a red button in javafx
2
3Button button = new Button("My Button");
4button.setStyle("-fx-background-color: #ff0000; ");
5
1/*can address these properties: */
2-fx-border-width
3-fx-border-color
4-fx-background-color
5-fx-font-size
6-fx-text-fill
7
8/* see source for more examples
9 see JavaFX CSS Reference Guide for additional properties:
10 https://docs.oracle.com/javafx/2/api/javafx/scene/doc-files/cssref.html
11*/