Constructor JLabel(String text, 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 title.add(new JLabel(tileString, SwingConstants.CENTER), BorderLayout.CENTER);
2 title.add(new JLabel(chartTitle, SwingConstants.CENTER), BorderLayout.CENTER);
3 textLabel = new JLabel(Util.THIS.getString("PROP_viewNoNode"), SwingConstants.CENTER);
4 statusLabel = new JLabel( Msg.get("zipdlg.msg.ready"), SwingConstants.CENTER );
5 _title = new JLabel(" " + table.getSqlName() + " ", SwingConstants.CENTER);
6 p.add(new JLabel("Dump", SwingConstants.LEFT),
7 add(new JLabel(Resources.LABEL_WIDTH_SHORT, SwingConstants.RIGHT), "1,1,1,1");
8 panel.add(BorderLayout.SOUTH, new JLabel(tagName, SwingConstants.RIGHT));
9 JLabel jp_title3 = new JLabel(lApp.getCopyrightMessage(),SwingConstants.RIGHT);
10 new JLabel ( "Food Growth Rate", SwingConstants.RIGHT ) );
11 wednesdayLabel = new JLabel("Wed", SwingConstants.CENTER);
12 new JLabel(BasicUtilities.getString("System_Properties"), SwingConstants.CENTER),
13 getContentPane().add(new JLabel("(c) copyright 2000 oyoaha - http://www.oyoaha.com", SwingConstants.LEFT), BorderLayout.SOUTH);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.