Answers for "CLOSE PROGRAM FROM JFRAME"

1

jframe exit on close

frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
Posted by: Guest on January-30-2021
1

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));
Posted by: Guest on September-12-2020

Browse Popular Code Answers by Language