Untitled
public text v1 · immutableclass Tafels extends Panel {
int SIZE = 10;
Button[][] getallenRij = new Button[10][];
public Tafels() {
setLayout(new GridLayout(10, 10));
for(int i=0; i<SIZE;i++) {
getallenRij[i] = new Button[10];
for(int y = 0; y<SIZE;y++) {
getallenRij[i][y] = new Button(""+y+1+" x "+i+1);
add(getallenRij[i][y]);
}
}
}
}