JavaFX integration in Swing
问题 I'm new to using JavaFX and I'm having some issues figuring out how to integrate an fxml file, in my swing application. Reading online I've found a way to load the fxml file,and displaying it on screen following this guide: Integrating JavaFX into Swing Applications what my code is supposed to do is to load the fxml file, that I've started to design with JavaFX Scene Builder, add the JFXPanel to a JPanel, and return it through a method call. this then gets added to a tabbedPanel in the main