-2
适用x和y coridinates到Jbuttons中我有此ArrayList如何在网格布局
ArrayList<JButton> b;
int limit = 16;
for(int i = 0; i< limit; i++){
gameBoard.add(new JButton("Counter"));
}
需要做它遍历X的另一种方法,y坐标以获得在网格布局的按钮。我怎样才能做到这一点。