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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -