객체지향프로그래밍강원대학교 File TimeTester2.java 18: public void actionPerformed(ActionEvent event) 19: { 20: box.translate(1, 1); 21: System.out.println(box); 22: } 23: } 24: 25: ActionListener listener = new Mover(); 26: 27: final int DELAY = 100; // Milliseconds between timer ticks 28: Timer t = new Timer(DELAY, listener); 29: t.start(); 30: 31: JOptionPane.showMessageDialog(null, Quit ); 32: System.out.println( Last box position: + box); 33: System.exit(0); 34: } 35: } 51
{}