Constructor JLabel(String text, Icon icon, int horizontalAlignment)
Member of:
javax.swing.JLabel
[
api documentation
] [
main menu
]
Examples of how the element is used
(one line per example):
[
add your own example
]
1
JLabel simpleErrorLabel = new JLabel(extraMessage,UIManager.getIcon("OptionPane.errorIcon"),JLabel.LEFT);
2
if (icon!=null) titleLabel = new JLabel(localize(title), icon, SwingConstants.LEFT);
3
JLabel jl = new JLabel(label, icon, SwingConstants.LEFT);
4
JLabel label = new JLabel((String)nodeColors.elementAt(i*2),
5
this.titleLabel = new JLabel(title, icon, SwingConstants.LEADING);
6
addComponent(new JLabel(file,
7
inventoryChartLegend.add(new JLabel(icon.getName(), icon, SwingConstants.LEADING));
8
JLabel l = new JLabel(Resources.getString(LABEL_APACHE_BATIK_PROJECT),
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.