Zookey90

Untitled

May 13th, 2012
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. for(int i=0; i<btn.length; i++){
  2. for(int j=0; j<btn.length;j++){
  3. btn[i][j] = new Button(""+i+","+""+j);
  4. btn[i][j].setPrefSize(50, 50);
  5. // Adding button to GridPane, i representing column value, j repsrenting row value.
  6. gridPane.add(btn[i][j], i, j);
  7. }
  8. }
Advertisement
Add Comment
Please, Sign In to add comment