事件监听 //事件监听:当某个事情发生的时候,干什么。 示例代码: public class TestActionEvent { public static void main(String[] args) { //按下按钮,触发一些事件 Frame frame = new Frame(</