Component.setLocation
Class Overview | Class Members | 
  This Package | 
All Packages
 public void setLocation( int x,
                         int y )
Parameters
-  x 
-  The x-coordinate of the new location's
 top-left corner in the parent's coordinate space.
    
-  y 
-  The y-coordinate of the new location's
 top-left corner in the parent's coordinate space.
    
Description
 Moves this component to a new location. The top-left corner of 
 the new location is specified by the x and y 
 parameters in the coordinate space of this component's parent.
  
See Also
     getLocation, setBounds
  
 public void setLocation( Point p )
Parameters
-  p 
-  The point defining the top-left corner
 of the new location, given in the coordinate space of this 
 component's parent.
    
Description
 Moves this component to a new location. The top-left corner of 
 the new location is specified by point p. Point 
 p is given in the parent's coordinate space.
  
See Also
     getLocation, setBounds