programatically close a jframe

Solutions on MaxInterview for programatically close a jframe by the best coders in the world

showing results for - "programatically close a jframe"
Alberto
23 Feb 2020
1// Sending a Event with the Window
2// to be closed this way, will initiate
3// the **closing** behaviour.
4frame.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));