G
Giovanni
Gast
Hallo.
Ich habe n Buttons erstellt:
for(int i=0; i<(n*n); i++){
buttons.add(new JButton(""));
window.add((JButton)buttons.get(i));
}
Nun möchte ich zum einzelnen Button den ActionListener hinzufügen.
Wie geht das?
Danke im Voraus.
Giovanni
Ich habe n Buttons erstellt:
for(int i=0; i<(n*n); i++){
buttons.add(new JButton(""));
window.add((JButton)buttons.get(i));
}
Nun möchte ich zum einzelnen Button den ActionListener hinzufügen.
Wie geht das?
Danke im Voraus.
Giovanni