Constructor JLabel(Icon image)
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
w.write(icon.getImage(), new JLabel(icon));
2
logoLabel = new JLabel(logo);
3
label = new JLabel(icon);
4
circArray[i][j] = new JLabel(new ImageIcon(XChessBoard.class.getResource("Rdot.gif")));
5
circArray2[i][j] = new JLabel(new ImageIcon(XChessBoard.class.getResource("Gdot.gif")));
6
new JLabel(m_resources.getImageIcon("logo-transparent.image"));
7
getContentPane().add(new JLabel(new ImageIcon(splashIm, "JMRI splash screen")));
8
leftLabel=new JLabel(leftIcon);
9
frame.getContentPane().add(new JLabel(icon), BorderLayout.CENTER);
10
sp.add(new JLabel(pic));
11
label = new JLabel(new ImageIcon(logo));
12
JLabel label = new JLabel(icon);
13
panel1.add(new JLabel(logo1));
14
if (icon!=null) captionPanel.add(new JLabel(icon));
15
panel.add(new JLabel(new ImageIcon(url)));
16
backgroundPanel.add(new JLabel(imageIcon));
17
c = new JLabel(BasicUtilities.loadIconResource("Database24"));
18
content.add(new JLabel(aboutImage), gbc);
19
JLabel jmeter = new JLabel(JMeterUtils.getImage("jmeter.jpg"));
20
JLabel jlbl = new JLabel (new javax.swing.ImageIcon (
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.