MenuItem.setStyle("-fx-font:..."); doesn't work

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • fx2.0
    • Affects Version/s: fx2.0
    • Component/s: javafx

      There is no easy way to make a menu item's text bold. You should be able to do:

      myMenuItem.setStyle("-fx-font: bold 12px \"Amble Cn\";");

      but it doesn't work, I am guessing font inheritance is not working with CSS property or we are not copying the style on the right node.

            Assignee:
            Leif Samuelsson (Inactive)
            Reporter:
            Jasper Potts (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: