JavaFX 2: How to load stylesheet into a Scene subclass distributed as part of a library?

后端 未结 2 974
眼角桃花
眼角桃花 2021-01-14 07:19

I\'m subclassing many of the JavaFX 2 classes to distribute them as part of a library that will be used by others. This requires that a stylesheet (part of the library) be a

2条回答
  •  深忆病人
    2021-01-14 07:44

    Finally tracked down the problem to Intellij IDEA CE which, by default, does not recognize css files as a resource that needs to be copied from the source to the target dir. Adding a *.css pattern to list of recognized resource types fixed the problem.

提交回复
热议问题