1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
|
public void verzögerung(){
try{
Thread.sleep(2000);
} catch(Exception e) {
}
}
public void actionPerformed(ActionEvent e){
Object obj = e.getSource();
if(obj == startB){
for(int i=0; i<10; i++){
zahlL.setText(""+i);
verzögerung();
} |