如何使用 netbeans 制作 JavaFX 将我的代码编译为 1.6 级合规性。
目前它似乎被硬编码为 1.5 级 - 阻止我使用 java.awt.Desktop (等)中的有用工具
Remember - because JavaFX must run on the Apple Java run-time which currently is Java 1.5 - JavaFX can't compile to Java 1.6.
Thus it likely will change in the future so that it can compile to Java 1.6.
这是 Stephen Chin 的一个很好的解释:http: //steveonjava.com/2009/01/02/hacking-javafx-10-to-use-java-16-features/
此外,如果您正在学习新语言,Steve 关于 JavaFX 的博客也很棒。