0

There's no setBackground method in the class and setStyle("-fx-background-color: green;") doesn't seem to work.

1 Answers1

0

Look up this thread, Although setStyle and "-fx-background-color:green" should also work for text's background-color when working with MenuItems

Community
  • 1
  • 1
oszd93
  • 193
  • 1
  • 2
  • 9