When setting the text fill property of a MenuButton or SplitMenu button it has no effect. Example code:
MenuButton mb = MenuButtonBuilder.create().text("MenuButton2").items(new MenuItem("Item A"),new MenuItem("Item B"),new MenuItem("Item C")).build();
mb.setTextFill(Color.RED);
mb.setGraphic(new Circle(5, Color.RED));
mb.setFont(Font.font("system", 30));
The menu buttons text should be RED but is not.
I think the bug is LabeledImpl doesn't handle textFill property it seems like it needs to be bound up as well.
MenuButton mb = MenuButtonBuilder.create().text("MenuButton2").items(new MenuItem("Item A"),new MenuItem("Item B"),new MenuItem("Item C")).build();
mb.setTextFill(Color.RED);
mb.setGraphic(new Circle(5, Color.RED));
mb.setFont(Font.font("system", 30));
The menu buttons text should be RED but is not.
I think the bug is LabeledImpl doesn't handle textFill property it seems like it needs to be bound up as well.
- duplicates
-
JDK-8128698 ListView text color changes unexpected after being unselected
- Closed
- relates to
-
JDK-8127396 ChoiceBox and MenuButton -fx-text-fill is broken
- Closed