Is there an event in Java that fires when a value changes? Like in this example
public class Example{ public String var1 = \"Something\"; public Int var2
I think you might be looking for the "observer" design pattern (Wikipedia Entry)
This is implemented in java via extending Obserable and having objects that want to be notified implement the Observer interface.