窗口监听事件 通过 addWindowListener获取 示例代码: //窗口监听事件 public class TestWindow01 { public static void main(String[] args) { new WindowFrame01();