java close jframe

54

java close jframe -

setVisible(false); //you can't see me!
dispose(); //Destroy the JFrame object

java close jframe -

frame.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));

Comments

Submit
0 Comments