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

WebView - Mouse cursor does not change when embedded in JFXPanel

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • fx2.0
    • javafx
    • None
    • Vista, b23

      Start and move over a link: The mouse cursors does not change to a hand cursor!
      Works without JFXPanel.


      App:

      public class SwingFx extends Application
      {
      private static JFXPanel jvxpan;

      private Scene scene;

      public static void main(String[] pArgs)
      {
      SwingUtilities.invokeLater(new Runnable()
      {
      public void run()
      {
      initFrame();
      }
      });
      }

      public void start(Stage pStage)
      {
      WebEngine webe = new WebEngine();
      webe.load("http://www.sibvisions.com");

      WebView webv = new WebView(webe);

              BorderPane bpane = new BorderPane();
              bpane.setCenter(webv);
              
              scene = new Scene(bpane);

      jvxpan.setScene(scene);
      }


      @SuppressWarnings("unchecked")
      private static void initFrame()
      {
      JFrame frame = new JFrame("SIB Visions");
      frame.setPreferredSize(new Dimension(640, 480));
      frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

      jvxpan = new JFXPanel();

      frame.getContentPane().add(new JButton("PRESS"), BorderLayout.WEST);
      frame.getContentPane().add(jvxpan, BorderLayout.CENTER);

      Launcher.launch(SwingFx.class, null);

      frame.pack();
      frame.setVisible(true);
      }

      }

            dcherepanov Dmitry Cherepanov
            rjahnjfx René Jahn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: