JAVA中的setbounds函數或者setsize函數,里面的參數是像素
2 回答

人到中年有點甜
TA貢獻1895條經驗 獲得超7個贊
public void setBounds(int x,
int y,
int width,
int height)移動組件并調整其大小。由 x 和 y 指定左上角的新位置,由 width 和 height 指定新的大小。
參數:
x - 組件的新 x 坐標
y - 組件的新 y 坐標
width - 組件的新 width
height - 組件的新 height
這和你控制的格子數游關系嗎?
添加回答
舉報
0/150
提交
取消