JFormattedTextField and DocumentEvent
Is it possible to have a JFormattedTextField that only fires DocumentEvents if the text (or the value) changes?
I have a field for example:
JFormattedTextField idField =new JFormattedTextField();
NumberFormat form1 = NumberFormat.getInstance();
form1.setMinimumFractionDigits(0);
form1.setMaximumFractionDigits(0);
idField =new JFormattedTextField(form1);
idField.setColumns(10);
There a DocumentEvent (which i use to detect changes allover the form) is fired when this field gets focus (before any chance to alter something) and a DocumentEvent is fired when this field loose focus even when nothing is changed.
Is it possible to suppress this DocumentEvents which do not result from changing the value or the text of the field?
thanks

