简体   繁体   中英

Why when i am closing a JFrame window that was launched from an Eclipse plugin the whole Eclipse framework stops also?

I have created an Eclipse plugin that adds a button at the menu bar and when you click the button a new Java GUI applications is starting(the application was implemented with the support of awt and swing library frameworks). My problem is that when i am closing the Java GUI application(click the "X" icon at up-right) then the Eclipse framework also stops and the process is stopped. That's the code below where i call the Java GUI application to start from my menuhandler:

java.awt.EventQueue.invokeLater(new Runnable() {
  public void run() {
   new atag.gui.MainFrame().setVisible(true);
  }
 });

I coded the GUI with Netbeans Frames tool.

Do you have any recommendations or how i can fix that? Thanks

您的插件可能在某个地方调用System.exit

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM