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
Check out the PropertyChangeListener http://download.oracle.com/javase/tutorial/uiswing/events/propertychangelistener.html