Answers for "how to set font size in swing java"

3

change font size java swing

// make sure the new size is a float, not an int (add f at the end of the number)
label.setFont(label.getFont().deriveFont(newSize));
Posted by: Guest on August-16-2020

Code answers related to "how to set font size in swing java"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language