« 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

Sorry I forgot to mention - yes I am using PropertyChangeSupport and firing a change event on every modification. The only thing different is that I did not define the last 4 functions you listed (but I did already have the first 2):



addPropertyChangeListener(String, PropertyChangeListener);

removePropertyChangeListener(String, PropertyChangeListener);

getPropertyChangeListeners();

getPropertyChangeListeners(String);



However, adding these has not fixed the problem. Again, changes that are made to all the other properties via setting the Theme property ARE being reflected in the GUI. They just aren't being reflected in the Property Sheet itself (until I click the mouse there). So if the property "color" is currently [255,255,255], then I set the Theme variable (which in turn changes the value of "color" to black), I will see that the object which depends on the value of "color" is now black, but in the Property Sheet itself I will still see [255,255,255], until I click the mouse there, at which point it will change to [0,0,0]. So it seems as though the only one not being notified is the Netbeans editor. Any ideas?




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