if (this._component instanceof JTextComponent) {
JTextComponent comp = (JTextComponent)this._component;
int start = comp.getSelectionStart();
int end = comp.getSelectionEnd();
if (start != end) {
comp.replaceSelection("");
// TF:Mar 4, 2010:If we remove a selection from a datafield, this datafield will fire
// AfterValueChange events, even though the change is programmatic. Hence, we must mirror this.
if (comp instanceof DataField) {
((DataField)comp).postAfterValueChange(false);
}