views:

1008

answers:

4
+1  Q: 

JavaFX and java

Simple question...Can I mix in my desktop application java and javafx code? If it is possible could you provide me with some link with examples? Or could I pack my custom made javafx CustomNode-s in a jar and use them in my project side by side with standard SWING components?

A: 

Supposedly all you have to do is drag and drop the JavaFX application to your desktop in order to make it a desktop application. You can also use Java code in a JavaFX application. Not sure about the other way around.

digitalsanctum
+1  A: 

Yes, you can mix Java and JavaFX.

According to one of the FAQ entries:

In addition, developers can use any Java library in their JavaFX applications. This allows JavaFX applications to take advantage of the rich JavaFX UI libraries, as well as the amazing breadth of functionality offered by Java.

The official source of information, including tools downloads, FAQ, and tutorials is the JavaFX web site.

joel.neely
+2  A: 

This article gives an example of calling JavaFX from Java, using the Scripting API.

Michael Myers
+1  A: 

I suggest you to look at dotFX. It can be useful for you. It has a netbeans plugin,too.

Read first here for get more information.

rayyildiz