java close jframe
setVisible(false); //you can't see me!
dispose(); //Destroy the JFrame object
java close jframe
setVisible(false); //you can't see me!
dispose(); //Destroy the JFrame object
jframe exit on close
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
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));
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us