Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8127609

MenuButton and SplitMenuButton's textFill properties are broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.1
    • fx2.1
    • javafx
    • None

      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.

            dgrieve David Grieve
            jasper Jasper Potts (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: