Constructor ImageIcon(URL location)
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 this(parent,new ImageIcon(pic),text);
2 ImageIcon icon = new ImageIcon(iconURL);
3 static final Icon SEQUENCE_ICON = new ImageIcon(AbstractChartModel.class.getResource(SEQ_GIF));
4 private final Image icon = new ImageIcon(getClass().getResource(imageDir+"cdox.gif"))
5 private final Icon _pkIcon = new ImageIcon(ColumnListCellRenderer.class.getResource("pk.gif"));
6 private final Icon _transparentIcon = new ImageIcon(ColumnListCellRenderer.class.getResource("transparent.gif"));
7 private static Icon s_icon = new ImageIcon(org.compiere.Compiere.class.getResource("images/VPreference16.gif"));
8 leftTop = new ImageIcon(this.getClass().getResource("left-top.png"));
9 super("Regenerate Preview", new ImageIcon(c.getClass().getResource("/foa/images/preview/regenerate.gif")));
10 jLabel3.setIcon( new ImageIcon( lookup ) );
11 = new ImageIcon(ShadowPopupBorder.class.getResource("shadow.png")).getImage();
12 if (url != null) JOptionPane.showMessageDialog(this, msg, "Moses", JOptionPane.PLAIN_MESSAGE, new ImageIcon(url));
13 return new ImageIcon(getClass().getResource(resourceName));
14 putValue(Action.SMALL_ICON, new ImageIcon(getClass().getResource("icons/all-queries.gif")));
15 new ImageIcon(getClass().getResource("Experiment16t.gif"))) {
16 ImageIcon icon = new ImageIcon( getClass().getResource("/resources/icon/icon.jpg") );
17 = new ImageIcon( this.getClass().getResource(
18 ImageIcon icon = new ImageIcon(ClassLoader.getSystemResource("resources/decoderpro.gif"));
19 docIcon = new ImageIcon(getClass().
20 logo = new ImageIcon(logoUrl);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.