change font size java swing

Solutions on MaxInterview for change font size java swing by the best coders in the world

showing results for - "change font size java swing"
Honesty
11 May 2017
1// make sure the new size is a float, not an int (add f at the end of the number)
2label.setFont(label.getFont().deriveFont(newSize));