n7.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String msg = "蛋疼蛋疼蛋疼蛋疼蛋疼蛋疼蛋疼蛋疼蛋疼蛋疼蛋疼";
JOptionPane.showMessageDialog(instance, msg);
}
});
在Schedule类里定义一个成员变量
Schedule instance = this;