« Return to Thread: Value of Bean properties are updated, but the Property Sheet doesn't refresh?

Value of Bean properties are updated, but the Property Sheet doesn't refresh?

by Rhizomorph :: Rate this Message:

Reply to Author | View in Thread

I have a Bean for which I would like one property to change depending on whether or not another property for that same Bean has been changed. Functionally, I can get this to work. But visually, the property sheet is not updating the values that it displays until I place the cursor in that field. For example, let's say I have a Bean with the following properties:



Color color

int size

float opacity

Theme theme (enum)



In this case, selecting a particular Theme will assign values to color, size, and opacity all at once. And when I do this, the actual object on the screen IS being updated to reflect that all the properties have just been modified. HOWEVER, the values for those same properties that are actually displayed in the Property Sheet do not change. How can I force the Property Sheet to refresh/update the values it's displaying when one of them is changed? I tried making all my properties "bound" in the BeanInfo file, but that doesn't do it.




 « Return to Thread: Value of Bean properties are updated, but the Property Sheet doesn't refresh?