You can use setLocation(x,y) or setLocation(Point p)