java jframe end code example
Example: programatically close a jframe
// Sending a Event with the Window
// to be closed this way, will initiate
// the **closing** behaviour.
frame.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));
// Sending a Event with the Window
// to be closed this way, will initiate
// the **closing** behaviour.
frame.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));