Answers for "how to set the text of a jlabel to bold"

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 "how to set the text of a jlabel to bold"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language