The idea that stands at the base of the jfg library is to create forms based on object attributes instead of having to write all the layout code from the scratch. To do that, it uses object reflection and a lightweight MVC model, where the programmer have only to write the model code.
Sometimes you are writing a POC or wants easy access to the attributes of some object (or even wants a simple form requesting some data from an user) but don't want the burden to write a GUI for that. In this cases jfg came at hand.
jfg allows the creation of simple forms with 2 lines of code, and supports the basic java types, recursive objects (aka one object as a field of the other), static attributes (if it recives a Class) and listeners for the model. It can apply the user input automatically or only when requested. Also, it tries to be very customizable.
For the model, jfg supports Reflection, a Map of fields or Custom attributes.
Being developed using Java, jfg is a cross-platform library that can be used on any operating system that comes with Java support (e.g. Mac OS X, Windows, Linux).
Detailed instructions on how to install and use the jfg utility on your Mac are available HERE.
Requirements:
· Java
What's New in This Release: [ read full changelog ]
· Added support for lists of objects
· Added image control, including use of webcam (needs http://lti-civil.org but works without too)
· Allows to add formaters to controls
· Allows to add validation to controls
· Easier way to configure controls
· Allows to write custom layouts for controls
· Includes my own fork of a split button (from http://swtsplitbutton.googlecode.com )