m4rlord
m4rlord

Reputation: 1272

Add the JavaFX UI Custom controls to Scene Builder

I have been following the wise advice from Hendrick and Harmonic code to create my UI Controls in JavaFX. I like so much the organization of the Control, Skin+Behavior and CSS styling. The unique disadvantage of using this approach is that i don't know how to use Scene Builder directly to build my GUI with my Controls(At least i don't know how can i do that). So, that is my question:

There is some way to import my JavaFX UI Controls to Scene Builder software?

This could help me to save much time.

Thanks

Upvotes: 2

Views: 2271

Answers (3)

Bohdan Zv
Bohdan Zv

Reputation: 451

You can use this tutorial

There described JavaFX and Scene Builer, CSS, Ant, MVC pattern

Upvotes: 0

sliwinski.lukas
sliwinski.lukas

Reputation: 1492

I can admit that there is unclear documentation about creating custom controls that will be fully compatible with scene builder.

ControlsFX developers team also have problems with proper third party controls creation to satisfy Scene Builder.

I created issue on jira of Scene Builder about that lack of information -> https://javafx-jira.kenai.com/browse/DTL-6909

Also you can read more about how and what problems you can meet on loading process of custom controls to Scene Builder here -> https://bitbucket.org/controlsfx/controlsfx/issue/243/all-controls-should-be-supported-by

Also you can display Scene Builder's analysis of your loaded third party controls (e.g.): Scene Builder Analysis Scene Builder Analysis result

Upvotes: 3

Juce
Juce

Reputation: 341

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".

Upvotes: 1

Related Questions