Include Controls FX in Scene Builder?

半腔热情 提交于 2019-11-27 14:35:48

问题


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 ?


回答1:


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.

  • This will open up the Library Manager Dialog:

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

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

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

  • All the selected components are loaded into the SceneBuilder.


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.




回答2:


If you're using Maven then just link it directly from your local repository rather than having to manage a separate instance.

the default setup in linux environments is ~/.m2/repository/org/controlsfx/

You'll have to remember to update it manually if you update.



来源:https://stackoverflow.com/questions/29601190/include-controls-fx-in-scene-builder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!