📅  最后修改于: 2022-03-11 14:52:39.088000             🧑  作者: Mango
// Sending a Event with the Window
// to be closed this way, will initiate
// the **closing** behaviour.
frame.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));