addActionListener(new ActionListener() {// 註冊停止事件的監聽器 public void actionPerformed(ActionEvent e) { ...