Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private Cell[][] cells;
- public GridPanel(Crossword c){
- int size = c.size;
- this.setLayout(new GridLayout(size,size));
- cells = new Cell[size][size];
- for(int i=0;i<size;i++){
- for(int j=0;j<size;j++){
- Cell cell = new Cell();
- cells[i][j].add(cell);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment