I have an existing Java project in Netbeans that uses Swing and I would like to start using Java FX 2.0 for some components in that project. I have dowloaded the latest version of the JDK (1.7.0_03) and enabled JavaFX but when I try adding an import javafx.xxx
statement, Netbeans can't resolve the link. Do I need to manually add some JARs to my list of external libraries?
Project Properties use "JDK 1.7-FX Enabled":
which is configured this way:
If you created your project in older NetBeans it can miss libraries from FX enabled plaftorm.
You can:
C:/Program Files/Oracle/JavaFX 2.0 SDK/rt/lib/jfxrt.jar
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.