Method getIconHeight()
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
int ih = super.imgIcon.getIconHeight();
2
high = imgIcon.getIconHeight();
3
l.setSize(icon.getIconWidth(), icon.getIconHeight());
4
int picHeight = icon.getIconHeight();
5
int height = ic.getIconHeight();
6
this.preferredSize = new Dimension(Icon.getIconWidth() + 2, Icon.getIconHeight() + 2);
7
int lh = ((ImageIcon)lData[0]).getIconHeight();
8
height = image.getIconHeight();
9
Dimension size = new Dimension(zoomOutButtonIcon.getIconWidth(), zoomOutButtonIcon.getIconHeight());
10
int imgHeight = panel.getImage().getIconHeight();
11
if (img.getIconHeight() >= getContentHeight()-4)
12
int y = getHeight() / 2 - thumbnail.getIconHeight() / 2;
13
g.drawImage( icon.getImage(), x, (h-icon.getIconHeight())>>1, this );
14
scalar = (double) maxSize / icon.getIconHeight();
15
+ ", h=" + m_image.getIconHeight() + ", w=" + m_image.getIconWidth());
16
int height = (int)(size.height/imageIcon.getIconHeight());
17
height = imageIcon.getIconHeight ( );
18
int splashHeight=splashImage.getIconHeight();
19
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.