public void setBounds(int x,
int y,
int width,
int height)移動並調整此組件的大小。 左上角的新位置由x和y ,新尺寸由width和height 。
該方法更改佈局相關信息,因此使組件層次結構無效。
參數
x - 這個組件的新的 x -coordinate
y - 這個組件的新 y-座標
width -新 width這個組件的
height -新 height這個組件的
public void setBounds(int x,
int y,
int width,
int height)移動並調整此組件的大小。 左上角的新位置由x和y ,新尺寸由width和height 。
該方法更改佈局相關信息,因此使組件層次結構無效。
參數
x - 這個組件的新的 x -coordinate
y - 這個組件的新 y-座標
width -新 width這個組件的
height -新 height這個組件的