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

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

    XMLWordPrintable

    Details

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

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported: