Method setLocation(int x, int y)
Return type: void
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
app.setLocation( 100, 40 );
2
setLocation(50, 50);
3
setLocation(200,100);
4
frame.setLocation(0,160);
5
dialog.setLocation(0,0);
6
setLocation(100, 100);
7
treeview.setLocation(10,10);
8
this.setLocation(200, 100);
9
ifr.setLocation(0, 0);
10
jif.setLocation(0, 0);
11
setLocation(10, 10);
12
f.setLocation( 50, 50 );
13
frame.setLocation(0, 50);
14
palette.setLocation(30,30);
15
f.setLocation(300*frameIndex,200);
16
mComponent.setLocation(lx,(ly + d <= 0 ? 0 : ly + d));
17
tbFrame.setLocation(x, 10);
18
setLocation(0, (new Double(370*hFactor)).intValue());
19
this.setLocation((int)(this.getLocation().getX() - (oldx - evt.getX())),(int)(this.getLocation().getY()- (oldy - evt.getY())));
20
setLocation(x - getSize().width/2, y - getSize().height/2);
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.