Here you can find the source of highlightLabel(JLabel label)
Parameter | Description |
---|---|
label | a parameter |
public static void highlightLabel(JLabel label)
//package com.java2s; //License from project: Apache License import java.awt.Color; import java.awt.Font; import javax.swing.JLabel; public class Main { private static final Font boldFont = new Font("Tahoma", Font.BOLD, 14); private static final Color highlightColor = new Color(72, 61, 169); /**// www .j ava 2 s . co m * Highlight label (both color and size) * * @param label */ public static void highlightLabel(JLabel label) { label.setFont(boldFont); label.setForeground(highlightColor); } }