Set Font globally in JavaFX -


how can set font type globally in javafx application?

is there solution can use? in javafx 8 default font has changed, , use same font used in javafx 2.2.

you can skin application css described on oracle website. using following syntax may set general theme application:

.root{     -fx-font-size: 16pt;     -fx-font-family: "courier new";     -fx-base: rgb(132, 145, 47);     -fx-background: rgb(225, 228, 203); } 

you include css followed:

scene.getstylesheets().add(getclass().getresource("application.css").toexternalform()); 

Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -