Method getWidth()
Return type: int
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 BufferedImage bi = new BufferedImage (window.getWidth(), window.getHeight(),
2 com.elvenware.codebox.GuiBox.showDialogSize(this, dlg, this.getWidth(), this.getHeight() / 2);
3 setLocation((r.x + (r.width / 2)) - (getWidth() / 2), (r.y + (r.height / 2)) - (getHeight() / 2));
4 jSplitPane1.setSize( this.getWidth(), this.getHeight() - 30 );
5 setLocation((r.x + (r.width / 2)) - (getWidth() / 2), (r.y + (r.height / 2)) - (getHeight() / 2));
6 Image image = ii.getImage().getScaledInstance(inHere.getWidth(), inHere.getHeight(),
7 int w=this.owner.getWidth()/2;
8 Configuration.setInteger(Argo.KEY_SCREEN_WIDTH, getWidth());
9 this.OnResize(e.getComponent().getWidth(),e.getComponent().getHeight());
10 com.elvenware.codebox.GuiBox.showDialogSize(this, dlg, this.getWidth() - 10, this.getHeight() - 10);
11 int width = comp.getWidth();
12 if (newWidth > getWidth()) {
13 Double x = new Double(thisFrame.getWidth()/2 + thisFrame.getLocation().getX());
14 int x = this.getParent().getX() + (this.getParent().getWidth() / 2);
15 properties.setProperty(section + "-width", String.valueOf(window.getWidth()));
16 int x = component.getWidth() /2;
17 g.fillRect( 0, 0, getWidth(), getHeight() );
18 int myWidth = tbFrame.getWidth();
19 final int width = getWidth();
20 p_parentPref.putInt( BSFPreferencesNames.WIDTH, p_container.getWidth() );
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.