jfxpanel

Custom object drag-and-drop from embedded FX (JFXPanel) to Swing

情到浓时终转凉″ 提交于 2020-01-02 06:56:40
问题 This question is a follow-up question to Custom object drag-and-drop from FX to Swing. I'm working on a plugin for a Swing application that uses JavaFX for some graphical user interfaces. We added drag-and-drop functionality to improve the user experience. First, we were using an external JavaFX window ( Stage ) for our Scene , now we want to embed it directly into the Swing application via a JFXPanel . Now, the strange thing is, that it seems to make a big difference for drag-and-drop

Javafx: No toolkit found exception

蓝咒 提交于 2019-12-10 16:10:35
问题 I have added the javafx library in my intellij plugin for adding the jfxwebview. But when I am trying to create JFXPanel object as JFXPanle jfxpanel = new JFXPanel(); It is giving the following exception: No toolkit found java.lang.RuntimeException: No toolkit found at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:217) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:209) at javafx.embed.swing.JFXPanel.initFx(JFXPanel.java:215) at javafx.embed.swing.JFXPanel.<init>

Custom object drag-and-drop from embedded FX (JFXPanel) to Swing

笑着哭i 提交于 2019-12-06 01:35:59
This question is a follow-up question to Custom object drag-and-drop from FX to Swing . I'm working on a plugin for a Swing application that uses JavaFX for some graphical user interfaces. We added drag-and-drop functionality to improve the user experience. First, we were using an external JavaFX window ( Stage ) for our Scene , now we want to embed it directly into the Swing application via a JFXPanel . Now, the strange thing is, that it seems to make a big difference for drag-and-drop whether the exactly same Scene is loaded in a Stage or in a JFXPanel . I already encountered some problems