Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
yourJFrame.addWindowListener( new WindowAdapter(){
public void windowClosing( WindowEvent e ){
[b][i]code to run when JFrame is closing[/i][/b]
}
public void windowClosed( WindowEvent e ){
[b][i]code to run when JFrame is closed.[/i][/b]
}
}
yourJFrame.setDeafaultCloseOperation( JFrame.DISPOSE_ON_CLOSE );