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

Creating a new stage using an JFXPanel embedded stage window as the owner of the new stage results in ClassCastException.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 7u15
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
    • Environment:

      Windows XP 32-bit

      Description

      In Java FX 2, creating a new stage using a JFXPanel embedded stage window as the owner of the new stage results in ClassCastException.

      Stack-trace:

      Error: Unsupported type of owner com.sun.javafx.tk.quantum.EmbeddedStage@1c7a22a
      java.lang.ClassCastException: com.sun.javafx.tk.quantum.EmbeddedStage cannot be cast to com.sun.javafx.tk.quantum.WindowStage
      at com.sun.javafx.tk.quantum.WindowStage.setVisible(WindowStage.java:422)
      at javafx.stage.Window$10.invalidated(Window.java:741)
      at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:127)
      at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:161)
      at javafx.stage.Window.setShowing(Window.java:781)
      at javafx.stage.Window.show(Window.java:796)
      at javafx.stage.Stage.show(Stage.java:229)

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Imported: