-
Notifications
You must be signed in to change notification settings - Fork 51
Get started
Antoine Mischler edited this page Feb 20, 2014
·
9 revisions
Stop coding forms: FXForm2 can do it for you!
FXForm2 is a library providing dynamic JavaFX 2.0 form generation.
You need to add the FXForm2 core library to your project dependencies: Add FXForm2 to your project dependencies
MyBean myBean = new MyBean(); // get an instance of the bean to be edited
Node fxForm = new FXForm(myBean); // create the FXForm node for your bean
root.getChildren().add(fxForm); // add it to your scene graph
That's it!
- Style your form with CSS
- i18n and tooltips
- Bean-validation-(JSR-303)
- Fields reordering and filtering
- Change the skin
You can also checkout the source code of the demo module, run the demo with maven and have a closer look at the source code to see how to use FXForm2 features!
cd FXForm2/
mvn clean install
cd demo
mvn exec:java