John Damien Smith wrote:> I tried to add all of my code to an FX project, which my FX code showed the imports as correct now, however it wouldn't run anything
Try using the JavaFX packaging tasks to package your Swing app with embedded JavaFX:
http://docs.oracle.com/javafx/2/deployment/deploy_swing_apps.htm#BACFDACD
There is also a JavaFX/Swing Interop example (with source code and a NetBeans project which builds out of the box) you should refer to if you have further issues:
http://www.oracle.com/technetwork/java/javafx/samples/index.html
I think I figured it out.... Will update.
Edit: One thing that has been bothering me is that I cannot run my
applet when I made JavaFX package. Apparently the fx code only works in those packages... So I was thinking can I import the files as a jar and use them in my none FX package, or will it not work? It wont work with having the FX JDK as my choice either....
.
When I add my files into the FX Package I get this error for images
I'm able to switch it back to the actual file path and it works... STUPID NETBEANS error
.