Merge pull request #575 from wolsen/issue-553

Notify all event listeners when DoubleModel.setValue called
This commit is contained in:
Daniel Williams 2020-03-14 00:21:45 -04:00 committed by GitHub
commit cc8f0caaab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -770,6 +770,8 @@ public class DoubleModel implements StateChangeListener, ChangeSource, Invalidat
try {
setMethod.invoke(source, v / multiplier);
// Make sure to notify all the listeners that have registered
fireStateChanged();
} catch (IllegalArgumentException e) {
throw new BugException("Unable to invoke setMethod of " + this, e);
} catch (IllegalAccessException e) {