Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
702 views
in Technique[技术] by (71.8m points)

javafx - Include Controls FX in Scene Builder?

Is it possible to include the component of Controls FX in Scene Builder ?

If yes, can you tell me how, if no can you tell me if there're alternatives ?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Yes you can. But unfortunately all ControlsFX controls are not supported by scene builder. An issue titled, "All controls should be supported by SceneBuilder" is currently opened with the ControlsFX team.

Update

Since SceneBuilder 8.2.0 you can directly search for an artifact from SceneBuilder and include them using the brand new Library Manager o/

To open the Library Manager:

  • Click the down arrow to the right of Library and choose import JAR/FXML File.

enter image description here

  • This will open up the Library Manager Dialog:

enter image description here

  • Select "Search Repository" and type in "ControlsFX" and click the Search button.

enter image description here

  • This will display all the controlsfx artifacts listed in the repositories that is added by default. Choose "org.controlsfx:controlsfx" and click on "Add Jar".

enter image description here

  • It then displays Dialog in which you can select the components that you want to import. Select them and press the "Import Component" button.

enter image description here

  • All the selected components are loaded into the SceneBuilder.

enter image description here


Import controls to SceneBuilder before 8.2.0

Prior to SceneBuilder 8.2.0, you can manually import the controls:

  • click the down arrow to the right of Library
  • choose "Import JAR/FXML File"
  • select the controlsfx jar.

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.8k users

...