Constructor ImageIcon(String filename)
Member of: javax.swing.ImageIcon
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 private JButton left = new JButton(new ImageIcon("d:/home/nick/src/uchicago/src/sim/images/Left.gif"));
2 private JButton exit = new JButton(new ImageIcon("d:/home/nick/src/uchicago/src/sim/images/Delete.gif"));
3 super("New", new ImageIcon("Foa/Images/add16.gif"));
4 imageLabel.setIcon(new javax.swing.ImageIcon(imageName) );
5 this.icon = new ImageIcon(filename).getImage();
6 ImageIcon image = new ImageIcon("./images/" + imageName);
7 return new ImageIcon(getLocationName());
8 JButton newButton = new JButton(text, new ImageIcon(image));
9 Icon icon = new ImageIcon(_iconName);
10 ImageIcon tmpIcon = new ImageIcon(f.getPath());
11 Image im1 = new ImageIcon(imageLocation).getImage();
12 ImageIcon bild = new ImageIcon(bildDateiname);
13 ImageIcon imageIcon = new ImageIcon(backgroundImage);
14 i = new ImageIcon (iconURL);
15 ImageIcon icon = new ImageIcon( file.getAbsolutePath() );
16 picture.setIcon(new ImageIcon(Preferences.get("LOCKED_CONFIGURATION_ICON")));
17 ImageIcon icon = new ImageIcon("images/left.gif"); //20x22
18 mTabbedPane.addTab("Save", new ImageIcon("images/save.gif"), mSavePanel);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.