in Objective C one can make use of key value observing to get notifications of changes to objects & then the program can act accordingly; is there something similar in java?
You can look into PropertyChangeListener, which has been part of Java since JDK 1.0:
http://download.oracle.com/javase/tutorial/uiswing/events/propertychangelistener.html
It is not possible in Java without implementing it yourself, so i wrote a little "library".
https://github.com/Appyx/JKVO
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With