javaswingdata-bindingjsr296beans-binding

Binding Swing components to Java objects


I'm currently working on a Desktop Application in Java using Swing. I’m using the beansbinding framework by jdesktop.org to synchronize the state of GUI components and data objects. However I’m running into troubles with the framework, forcing me to manually transfer state information between GUI components and data objects back and forth.

Are there alternatives to the beansbinding framework (which is used by NetBeans too I think?)? Is there some strategy that you can recommend (like not using bindings at all? what to do instead?)?

In case you wonder what problems I do face with beansbinding:


Solution

  • Though usable, Beansbinding is dead - it was artificially pushed into 1.x state when it was far from having earned that version number and not much changed since then. Whatever problems you discover, they will not be fixed - except you do it yourself :-) As to the particular bullets:

    The obvious current alternative is JGoodies Binding. Didn't look into it for a while, but seen that it came out with a new version recently, so definitely under development and used. A future alternative might be fx binding - it's still in its infancy, waiting for kind souls to build some usable framework around its barebones.