Answers for "how to make font size change with window size java swing"

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 make font size change with window size java swing"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language