Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8118745

Gtk: Why when Jdialog dispose close main window ?

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 7u6
    • fx2.1
    • javafx
    • JavaFx2 linux RHEL6
      2.1-b18

      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 ?

        1. ChartFormat.java
          34 kB
          J. Duke
        2. ChartPanel.java
          2 kB
          J. Duke
        3. WorkspacePanel.java
          3 kB
          J. Duke

            art Artem Ananiev (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: