fonts - JavaFx 8 - Changing CSS style property values at runtime -
fonts - JavaFx 8 - Changing CSS style property values at runtime -
i have scale/change button's text size dynamically default values in css
.button { -fx-font-size: 20; } in javafx
button.getstyleclass().add("button"); now have scale fonts factor 2 there no way find existing font size multiply factor
button.setstyle("-fx-font-size:"+oldval*2); how existing font size ?
it's easy using
button.getfont().getsize(); it works after stage shown.
css fonts javafx javafx-8
Comments
Post a Comment