• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java BeansBinding Update Control Problem

 
Carlos Conti
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I am trying to program a simple Form where a combo updates a source property and then should arrange a calculations, that at the time updates other properties in the same class, such as:

A.propertyA.setValue(x)
A.propertyB.setValue(x*2)

Both properties have target controls in the form, so a change in propertyA should fire automatically this calculation and update the target controls accordingly. I try to attain this with the following snippet:



But this code doesn't refresh the control values. I run it after the EventDispatchThread has updated the values, because otherwhise the propertyB new value may be overriden by the old value. Not completely sure about this, but anyway this should work!

Any ideas what I am missing?

Thanks in advance for your help!
Carlos.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!