I want to use a JFXPanel for a video player. I use a fxml file for the design of the appplication. (not for the videoplayer itself)
...
<VBox>
<Pane id="VideoEmbedded" fx:id="VideoEmbedded" style="- fx-background-color: #111111;" VBox.vgrow="ALWAYS" />
<HBox alignment="CENTER" prefWidth="600.0" spacing="8.0" />
</VBox>
...
I want simply to "replace" means fill the Pane("VideoEmbedded") with my JFXPanel.
//inside the controller
final JFXPanel JFXPanel_VideoEmbedded= new JFXPanel();
@FXML
private JPanel VideoEmbedded;
...
//inside the videoplayer function
VideoEmbedded.add(JFXPanel_VideoEmbedded); //this doesn't work
How can i add the JFXPanel into the correct position in the DOM-Hirarchy?