📜  以编程方式关闭 jframe - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:39.088000             🧑  作者: Mango

代码示例1
// Sending a Event with the Window
// to be closed this way, will initiate
// the **closing** behaviour.
frame.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));