javafx css text size code example
Example 1: javafx change text size
text.setFont(Font.font ("arial", 24));
or
text.setStyle("-fx-font: 24 arial;");
Example 2: javafx css text size
#id{
-fx-font-size:50pt;
}
text.setFont(Font.font ("arial", 24));
or
text.setStyle("-fx-font: 24 arial;");
#id{
-fx-font-size:50pt;
}