public void setBounds(int x,int y,int width,int height) function: Moves and resizes this component. The new location of the top-left corner is specified by x and y, and the new size is specified by width and height.
public int getHeight() function: Returns the current height of this component.
public int getWidth() function: Returns the current width of this component.