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

JavaFX scene included in Swing JDialog not starting from Web Start

XMLWordPrintable

    • b38
    • windows_7

        FULL PRODUCT VERSION :
        Java Plug-in 10.25.2.17
        Using JRE version 1.7.0_25-b17 Java HotSpot(TM) 64-Bit Server VM




        ADDITIONAL OS VERSION INFORMATION :
        Windows 7

        A DESCRIPTION OF THE PROBLEM :
        JavaFX scene included in Swing JDialog not starting from Web Start

        REGRESSION. Last worked in version 7u25


        ERROR MESSAGES/STACK TRACES THAT OCCUR :
        java.lang.NullPointerException
        at javax.swing.SwingUtilities.appContextGet(SwingUtilities.java:1861)
        at javax.swing.JComponent.getDefaultLocale(JComponent.java:2775)
        at javax.swing.JComponent.<init>(JComponent.java:600)
        at javafx.embed.swing.JFXPanel.<init>(JFXPanel.java:197)
        at error.Error.start(Error.java:26)
        at com.sun.javafx.applet.FXApplet2$1.run(FXApplet2.java:132)
        at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179)
        at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:176)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:176)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
        at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
        at java.lang.Thread.run(Thread.java:724)
        Exception in runnable
        java.lang.RuntimeException: java.lang.NullPointerException
        at com.sun.javafx.applet.FXApplet2$1.run(FXApplet2.java:148)
        at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179)
        at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:176)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:176)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
        at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
        at java.lang.Thread.run(Thread.java:724)
        Caused by: java.lang.NullPointerException
        at javax.swing.SwingUtilities.appContextGet(SwingUtilities.java:1861)
        at javax.swing.JComponent.getDefaultLocale(JComponent.java:2775)
        at javax.swing.JComponent.<init>(JComponent.java:600)
        at javafx.embed.swing.JFXPanel.<init>(JFXPanel.java:197)
        at error.Error.start(Error.java:26)
        at com.sun.javafx.applet.FXApplet2$1.run(FXApplet2.java:132)
        ... 8 more


        REPRODUCIBILITY :
        This bug can be reproduced always.

        ---------- BEGIN SOURCE ----------
        public class Error extends Application {

            @Override
            public void start(Stage primaryStage) {
                StackPane root = new StackPane();

                final Scene scene = new Scene(root, 800, 650);
                final JFXPanel fxPanel = new JFXPanel();
                JDialog jDialog = new JDialog();
                jDialog.add(fxPanel);

                Platform.runLater(new Runnable() {
                    @Override
                    public void run() {
                        fxPanel.setScene(scene);
                    }
                });

            }

            public static void main(String[] args) {
                launch(args);
            }
        }
        ---------- END SOURCE ----------

              leonidr Leonid Romanov (Inactive)
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: