Swing-setBounds()用法-入門
先看API: public void setBounds(Rectangle r) 移動組件並調整其大小,使其符合新的有界矩形 r。由 r.x 和 r.y 指定組件的新位置,由 r.width 和 ...
先看API: public void setBounds(Rectangle r) 移動組件並調整其大小,使其符合新的有界矩形 r。由 r.x 和 r.y 指定組件的新位置,由 r.width 和 ...
形式一:setBounds(int x,int y,int width,int height); 用於設置窗口尺寸和位置; (1)x, y 參數分別對應窗口的x, y 坐標,可改變值選 ...