system.exit or destroy if applet or app
[jalview.git] / src / jalview / bin / Jalview.java
index 69fd7b0..f23bcc9 100755 (executable)
@@ -52,11 +52,11 @@ public class Jalview extends JApplet
 \r
   public void destroy()\r
   {\r
-    System.out.println("Goodbyeee");\r
-\r
-    applet.stop();\r
+    if(applet!=null)\r
+      applet.stop();\r
+    else\r
+      System.exit(0);\r
     frame.setVisible(false);\r
-\r
   }\r
 \r
    public static void main(String[] args) {\r