Tell JavaFX Scene Builder where to look for controller classes

后端 未结 2 749
南方客
南方客 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:30

    I've shared an example for usage of maven-resources-plugin in maven-java-fx projects at below link.

    https://stackoverflow.com/a/33057082/2017822 [JavaFx scenebuilder and Maven Integration]

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题