gluonhq / scenebuilder

Scene Builder is a visual, drag 'n' drop, layout tool for designing JavaFX application user interfaces.
https://gluonhq.com/products/scene-builder/
Other
732 stars 218 forks source link

Import of custom control reusing other custom control not working in SceneBuilder 8.1.1 #60

Open gluon-bot opened 8 years ago

gluon-bot commented 8 years ago

Originally reported by: Oliver Welter (Bitbucket: OliverWelter, GitHub: OliverWelter)


Hi, I created a custom control named "CustomEmbeddedControl" extending from gridpane using a fxml file and a java class. In the same project I also created another custom control named "ExtendedCustomControl" which uses "CustomEmbeddedControl". If I build the jar and import it to SceneBuilder 8.1.1 only "CustomEmbeddedControl" can be imported. In the report I see that "ExtendedCustomControl" could not be imported because of ClassNotFoundException because "CustomEmbeddedControl" could not be found.

I also tried separating the controls into different jars but got the same result. I put the code on github for further investigation https://github.com/oliverwelter/scenebuilder-embedded-controls/tree/master

Any ideas what might be wrong?

Best Regards, Oliver


gluon-bot commented 8 years ago

Original comment by Pahan13 (Bitbucket: Pahan13, GitHub: Pahan13):


Hello, I meet exactly the same problem as described above. Using JavaFX Scene Builder 8.2.0, Build date: 2016-05-18. When I tries to load my custom controls, thous ones which contains other custom controls are not loaded. If I go to Library >> Custom Library Folder >> Show Jar Analisis Report it tells ClassNotFoundException.

Best Regards, Pavel

gluon-bot commented 8 years ago

Original comment by Jose Pereda (Bitbucket: JPereda, GitHub: JPereda):


Can you check the 8.2.0 version? Problems related to opening FXML files with custom controls, providing the jar with them was already added to Scene Builder, should be fixed.