Answers for "jlabel bold text"

1

how to set the text of a jlabel to bold

JLabel label = new JLabel("I'm bold");
Font font = new Font("Courier", Font.BOLD,12);
label.setFont(font);
Posted by: Guest on September-26-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language