scenebuilder layer classnotfound

一笑奈何 提交于 2019-12-02 12:06:48

You can use all the components included in the Container or Control panels from Scene Builder in any JavaFX project (as well as those in the other panels like Menu, Shapes, 3D, ...), since those are built-in JavaFX components.

But those included in the Gluon Mobile panel are not regular JavaFX components.

These components are included in the Gluon Mobile library, and you can make use of it in your project as well, providing you include the proper dependencies.

The best way to do it is using the Gluon IDE plugin on your favorite IDE (NetBeans, IntelliJ or Eclipse). Install the plugin and create a new project, it will include the Gluon Mobile dependencies:

dependencies {
    compile 'com.gluonhq:charm:4.3.0'
}

You can select the Gluon Mobile - MultiView with FXML or Glisten-Afterburner templates. Both make use of FXML, and you can use Scene Builder 8.3.0 to design the Views for your project.

Note that you will be able to run this project on desktop and also on mobile (Android and iOS), using the same codebase.

Be aware that the library is not free, but you can fully explore it without a license.

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