Java JLabel Create newJLabel(String n, char m, Component c)

Here you can find the source of newJLabel(String n, char m, Component c)

Description

new J Label

License

Apache License

Declaration

public static JLabel newJLabel(String n, char m, Component c) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.awt.Component;

import javax.swing.JLabel;

public class Main {
    public static JLabel newJLabel(String n, char m, Component c) {
        JLabel l = new JLabel(n);
        l.setDisplayedMnemonic(m);/*from w w  w. j a  v a  2s .  c om*/
        l.setLabelFor(c);
        return l;
    }
}

Related

  1. createLabel(String name, int x, int y, int width, int height, Font font)
  2. createLabel(String text, Font f)
  3. createLabel(String text, Font f, Color c, int position)
  4. createLabelledComponent(JLabel label, Component component)
  5. createTabLabel(JLabel label, int width)