Hi
I want to create a simple bi-directional variable binding in java. assume having a String and a jTextField
String stringVariable;
JTextField jTextField;
I bound the jTextField.text property to the stringVariable using this code :
org.jdesktop.beansbinding.Binding binding = org.jdesktop.beansbinding.Bindings.createAutoBinding(org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE, this, org.jdesktop.beansbinding.ELProperty.create("${stringVariable}"), jTextField, org.jdesktop.beansbinding.BeanProperty.create("text"));
bindingGroup.addBinding(binding);
bindingGroup.bind();
any thing is OK whenever I change the jTextField text , changes applied to the stringVariable
BUT
as I change the stringVariable value , no changes seems to be occurred in jTextField
please help me how to solve this problem
Thanks