简体   繁体   中英

JavaFX Custom component in the same project and scene builder

I have a small question. I have seen on a blog that you have to create a .jar from a custom component and load that file into scene builder, but in my project all custom components are in the main project, do I have to create a .jar from the project and import it, because that seems pretty weird. Thank you very much.

You can use both a FXML or a jar and load it into the SceneBuilder, independent of the Project. You can create Templates and load them into the SceneBuilder to reuse them in many Projects.

Look at the right side of the Library-Searchbar in the Top-Left Corner. If you click on that gear-wheel you will see the Menupoint - "Import JAR/FXML File".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM