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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • fx2.0
    • fx2.0
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported: