Answers for "how to change font and size of jlabel"

3

how to change font size in JLabel

label = new JLabel("A label");
label.setFont(new Font("Serif", Font.PLAIN, 14));
Posted by: Guest on October-23-2020

Code answers related to "how to change font and size of jlabel"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language