}
field.removeTextFieldListener(this);
}
public void stopEditing() {
CaretEvent e = new CaretEvent(this, oldText, curText);
field.setText(curText);
for (CaretListener l : new ArrayList<CaretListener>(listeners)) {
l.editingStopped(e);
}
field.removeTextFieldListener(this);