//making a red button in javafx Button button = new Button("My Button"); button.setStyle("-fx-background-color: #ff0000; ");