PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2896

*** shadow/2896 Mon Jul 30 08:36:40 2001
--- shadow/2896.tmp.25496       Mon Jul 30 08:36:40 2001
***************
*** 0 ****
--- 1,46 ----
+ +============================================================================+
+ | System.exit                                                                |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2896                        Product: JMeter                  |
+ |       Status: NEW                         Version: 1.5                     |
+ |   Resolution:                            Platform: PC                      |
+ |     Severity: Minor                    OS/Version: Windows 9x              |
+ |     Priority: Other                     Component: Main                    |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: [EMAIL PROTECTED]                                |
+ |  Reported By: [EMAIL PROTECTED]                                             |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ I found out that the behavior for File - exit, and the behavior of the right
+ upper "x" doesn�t exit in same way.
+ I think you should use the same method when closing even if you still not
+ are finnished with it yet as I can see in outprint when closing.
+ I have included the change I did so it used the same Command "ExitCommand.java".
+ I allso suggest that you declare the command strings in your class as 
+ public final static String EXIT = "exit"; instead of hardcode them in different
+ places in the code. That way one could use them and get a compilationcheck
+ for them instead. That aplies for all Commands.
+ Changes made with comment <new code>
+ in file:
+ org.apache.jmeter.gui.MainFrame.java
+ 
+ private void init()
+       {
+               menuBar = new JMeterMenuBar();
+               createToolBar();
+               createTreePanel();
+               createMainPanel();
+               addThemAll();
+                                        addWindowListener(new WindowAdapter() {
+                                                 public void windowClosing
+ (WindowEvent evt) {
+    //<new code>
+    //System.exit(0);
+    actionHandler.actionPerformed(new ActionEvent(this,evt.getID(),"exit"));
+    //</new code>
+                                                 }
+                                        });
+       }

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to