Java JLabel highlightLabel(JLabel label)

Here you can find the source of highlightLabel(JLabel label)

Description

Highlight label (both color and size)

License

Apache License

Parameter

Parameter Description
label a parameter

Declaration

public static void highlightLabel(JLabel label) 

Method Source Code

//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);
    }
}

Related

  1. getLabelValue(JLabel lbl)
  2. getRoughStroke(final JLabel _jlbl_stroke)
  3. getStoredBackground(JLabel comp)
  4. getStroke(final JLabel _jlbl_stroke)
  5. getTimeWidth(JLabel label)
  6. leftAlignJLabel(JLabel label)
  7. parseIntFromLabel(JLabel jLabel)
  8. setBoundsForJLabel(JLabel label, int xOffset, int yOffset)
  9. setErrorBackground(JLabel comp)