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:
- it replaces my TableModel inside JTables (so I can’t use my own or delete rows)
- certain properties are not accessible or available, like selectedItem or selectedObject (at least consistenly across JComboBox, JList, etc.)
- certain properties are either read only or write only (like selectedItem or selectedObject)
- I can bind special values for the value null, but I can’t for example map numbers in a list to strings in a JComboBox using a custom mapping function or something (I know that I can create a special class with an appropriate toString method, however this forces me to create special wrapper objects for my datasets)
- ...