Modify Listener problem with Tabs

private ModifyListener modifyListenerFocus =new ModifyListener(){

publicvoid modifyText(final ModifyEvent e){

if (!((Control) e.widget).isFocusControl()){return;}//only listen if User is in field on this event

setBothOkAndUnsavedDataIndicator(false);

}

};

I have this code above that sets a save buttons color to red if a change in a field is made. However, if i click in a field and not change anything at all, but then tab to another page, it will set the button to red thinking the field was modified. how can i check for this condition ? please help me

[1056 byte] By [makaveli007a] at [2007-10-3 2:47:38]
# 1
You deserve no help whatsoever. http://forum.java.sun.com/thread.jspa?threadID=671084
warnerjaa at 2007-7-14 20:36:25 > top of Java-index,Java Essentials,Java Programming...
# 2
what? are you the java nazi?> You deserve no help whatsoever.> http://forum.java.sun.com/thread.jspa?threadID=671084
makaveli007a at 2007-7-14 20:36:25 > top of Java-index,Java Essentials,Java Programming...