From 7c6ebbe8faf26e95f96bcad204cad37b714c6ffc Mon Sep 17 00:00:00 2001 From: spandi Date: Sun, 22 Jun 2008 21:29:59 +0000 Subject: [PATCH] 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 --- java/src/ch/ntb/usb/usbView/UsbView.java | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/java/src/ch/ntb/usb/usbView/UsbView.java b/java/src/ch/ntb/usb/usbView/UsbView.java index 56e2990..7841b44 100644 --- a/java/src/ch/ntb/usb/usbView/UsbView.java +++ b/java/src/ch/ntb/usb/usbView/UsbView.java @@ -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); - } - }); } /**