简体   繁体   中英

JavaFX: Scene Builder like a component?

is it possible to use a Scene Builder like a component? I would include an advanced wizard for creating custom layout and save configuration on file or is it better to create a custom one? Is there any third party library which can be used?

Update

SceneBuilder is now an open source project.
Binaries for SceneBuilder are now available through Gluon . SceneBuilder was split into two parts:

  1. SceneBuilderKit (a reusable framework)
  2. SceneBuilder (the actual SceneBuilder application, built using the framework).

SceneBuilder source is currently still hosted as part of the JavaFX source repository (which is also open source). The current development version of SceneBuilder based upon Java 9 development efforts is located at:

Work was done on the SceneBuilder application itself so that it is able to be embedded into an IDE directly rather than needing to run as a stand-alone application (though it can also still run as a stand-alone application).

The rest of this answer is mostly obsolete

is it possible to use a Scene Builder like a component?

SceneBuilder is a closed source standalone application and cannot (currently) be embedded in an existing JavaFX scene graph for a non-Oracle application (as far as I am aware).

You can launch SceneBuilder as a separate application (such as is performed with the current integration of Scene Builder and Java IDEs ).

You likely do not have license rights to distribute Scene Builder (you can check the Scene Builder license yourself ). If you choose to require the user to use SceneBuilder, you will need to request that they download SceneBuilder from Oracle and install it themselves before using your application.

If you have a significant application you want to bundle SceneBuilder with or embed SceneBuilder into, you can contact Oracle to discuss alternate licensing agreements.

Is there any third party library which can be used?

Currently, there is no 3rd party library (for JavaFX development) which comes even remotely close to the functionality provided by SceneBuilder.

I would include an advanced wizard for creating custom layout and save configuration on file or is it better to create a custom one?

This part of your question is too vague to get an answer.

You can create a new question, but please ensure your new question is of better quality . Requests for somebody to perform an evaluation of options for you on StackOverflow usually don't work out too well (there are other sites for such questions). It is better to pick an option yourself, try it and then post questions (often with code) when something specific in your implementation is not working for you.

I would note that creating a custom layout manager similar in functionality to SceneBuilder is a large and complex task. SceneBuilder took a team of people years to create.

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