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.
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.
- relates to
-
JDK-8114437 Label is apparently using Font.getDefault() rather than using CSS
- Closed