Hot to update dynamically font size
问题 I have this css file which sets the default font size and type in JavaFX application: .root { -fx-font: 13px Tahoma; } scene.getStylesheets().add(getClass().getResource("/styles/Styles.css").toExternalForm()); I want to update the size and the font type from the Java code dynamically of the root component (all components). How I can do this? Note: This code updates the Font type and size of all components into the JavaFX application. 回答1: Please consider taking a look at the official JavaFX