Tell JavaFX Scene Builder where to look for controller classes

后端 未结 2 798
南方客
南方客 2021-02-06 13:18

In Oracle\'s JavaFX Scene Builder it is possible to specify which Java class will be used as the controller for a scene. It\'s member variables will be populated by the

2条回答
  •  我寻月下人不归
    2021-02-06 13:40

    As of right now, this is not possible. There's a feature request to add the functionality in the future:

    https://javafx-jira.kenai.com/browse/DTL-5124

    As a workaround, you might be able to configure the maven-resources-plugin to include your source directory as a resource directory:

    http://maven.apache.org/plugins/maven-resources-plugin/

    If you're using Gradle and Intellij IDEA 13, be aware of this issue:

    http://youtrack.jetbrains.com/issue/IDEA-118280#comment=27-654638

提交回复
热议问题