... you'll see that the GridLayout changes the cell size so that the cells are as ... setLayout(new GridLayout(0,2)); pane.add(new JButton("Button 1")); ...
確定! 回上一頁