dispose JFrame on close instead of exit, System.exit removed

thanks to Dima for the patch

git-svn-id: https://svn.code.sf.net/p/libusbjava/code/trunk@269 94ad28fe-ef68-46b1-9651-e7ae4fcf1c4c
This commit is contained in:
spandi
2008-06-22 21:29:59 +00:00
parent c9e90b2b64
commit 7c6ebbe8fa

View File

@@ -75,17 +75,11 @@ public class UsbView extends JFrame {
* @return void
*/
private void initialize() {
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
this.setJMenuBar(getJJMenuBar());
this.setSize(APP_WIDTH, APP_HIGHT);
this.setContentPane(getJContentPane());
this.setTitle("USB View");
this.addWindowListener(new java.awt.event.WindowAdapter() {
@Override
public void windowClosing(java.awt.event.WindowEvent e) {
System.exit(0);
}
});
}
/**