Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Why when Jdialog dispose close main window ?

famedoroApr 2 2012 — edited Apr 2 2012
I recently started a JavaFX project, and I've a problem with a JDialog Swing modal dialog in my application. I've a JDesktopPane in which I've drawed a graph using a Javafx JFXPanel. The JDesktopPane also have a popmenu, using the popumenu I've launch a modal Jdialog. The Jdialog have a setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

The problem is when I close Jdialog window via x in the upper right corner o via this.dispose(), whole program terminates as if I was closing the main window.

The problem arise under Linux, but under Windows it's work correctly.

Someone can help me ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 30 2012
Added on Apr 2 2012
2 comments
220 views