Running the Java FX application

The full project is hosted at this fork of JBoss developer framework: https://github.com/fmarchioni/jboss-as-quickstart/tree/master/kitchensink-javafx

Before running the maven project, you have to check for the correct javafx-path, which is in the pom.xml

<javafx-path>C:\Java\jdk1.7.0_09\jre\lib\jfxrt.jar</javafx-path>

Launch the main application using
mvn install -Prun

Which will invoke the "run" profile that in turn will run the project's Main class.

Here's how the main form looks like:

jboss resteasy javafx tutorial webservices

Notice how validation error messages are beautifully handled in the Main class' errorPane:

jboss resteasy javafx tutorial webservices

If you pass all validation checks, the new Member is finally added into JavaFX javafx.scene.control.TableColumn, just like it does in the KitchenSink dataTable component:

javafx resteasy webservices tutorial jboss

Enjoy JavaFX and RESTeasy services !

0
0
0
s2smodern