Method getSize()
Return type: java.awt.Dimension
Member of: java.awt.Component
[api documentation ] [ main menu]

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

1 System.out.println(getSize());
2 return (getSize().width < getParent().getSize().width);
3 if (component.getSize().width < minWidth)
4 if (component.getSize().width < minWidth)
5 w.setBounds(org.openide.util.Utilities.findCenterBounds(w.getSize()));
6 setLocation(x - getSize().width/2, y - getSize().height/2);
7 previousDimension = getSize();
8 Dimension d = getSize();
9 centerOnScreen ( window, window.getSize ( ) );
10 Dimension wd = getSize();
11 GuiHelper.drawFocusRectangle(g, borderInsets.left,borderInsets.top, button.getSize().width-(borderInsets.left + borderInsets.right)
12 Dimension fs = getSize();
13 Dimension d = getSize();
14 setLocation(AwtConst.getCenterLocation(this.getSize()));
15 dialog.setLocation((Toolkit.getDefaultToolkit().getScreenSize().width / 2) - (dialog.getSize().width / 2), (java.awt.Toolkit.getDefaultToolkit().getScreenSize().height / 2) - (dialog.getSize().height / 2));
16 Dimension d = c.getSize();
17 g.drawImage (image, 0, 0, getSize ().width, getSize ().height, this);
18 if (d.width < getParent().getSize().width) {
19 Dimension comp = frame.getSize();
20 Dimension comp = dialog.getSize();
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.