Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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);
Source by www.rgagnon.com #
 
PREVIOUS NEXT
Tagged: #set #text #jlabel #bold
ADD COMMENT
Topic
Name
5+7 =