Method getIconWidth()
Return type: int
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 if (((getScale () * storedImage.getIconWidth ()) > 1) &&
2 int iw = super.imgIcon.getIconWidth();
3 int iw = super.imgIcon.getIconWidth();
4 l.setSize(icon.getIconWidth(), icon.getIconHeight());
5 wide = imgIcon.getIconWidth();
6 int picWidth = icon.getIconWidth();
7 int width = ic.getIconWidth();
8 this.preferredSize = new Dimension(Icon.getIconWidth() + 2, Icon.getIconHeight() + 2);
9 int lw = ((ImageIcon)lData[0]).getIconWidth();
10 width = image.getIconWidth();
11 Dimension size = new Dimension(zoomOutButtonIcon.getIconWidth(), zoomOutButtonIcon.getIconHeight());
12 int imgWidth = panel.getImage().getIconWidth();
13 if (img.getIconWidth() >= getContentWidth()-4)
14 if (tmpIcon.getIconWidth() > 90)
15 x += icon.getIconWidth();
16 if (icon.getIconHeight() >= icon.getIconWidth()) {
17 int width = (int)(size.width/imageIcon.getIconWidth());
18 + ", h=" + m_image.getIconHeight() + ", w=" + m_image.getIconWidth());
19 width = imageIcon.getIconWidth ( );
20 System.out.println("AppletButton image is " + imgIcon.getIconWidth() + " by " + imgIcon.getIconHeight() + " pixels");
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.