Java tutorial
//package com.java2s; import java.awt.Font; import javax.swing.JLabel; public class Main { public static void boldLabel(JLabel label) { label.setFont(label.getFont().deriveFont(Font.BOLD)); } }