JAVA CLOSE JFRAME CLOSE IN SECONDS code example
Example: java close jframe
setVisible(false); //you can't see me!
dispose(); //Destroy the JFrame object
setVisible(false); //you can't see me!
dispose(); //Destroy the JFrame object