开发者

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 framewor开发者_JAVA技巧ks). 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


Your plugin probably calls System.exit somewhere.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜