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);
}
}
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);
}
}
- relates to
-
JDK-8113344 Cursor / ImageCursor cache refactoring and fixes
-
- Closed
-