Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java BeansBinding Update Control Problem  RSS feed

Carlos Conti
Ranch Hand
Posts: 132
  • 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:


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!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!