There's no setBackground method in the class and setStyle("-fx-background-color: green;") doesn't seem to work.
Asked
Active
Viewed 738 times
1 Answers
0
Look up this thread, Although setStyle and "-fx-background-color:green" should also work for text's background-color when working with MenuItems