textComponent.select(textComponent.getCaretPosition(), textComponent.getCaretPosition());
}
else if (owner instanceof JTable)
{
final JTable table = (JTable) owner;
table.clearSelection();
}
else if (owner instanceof JList)
{
final JList list = (JList) owner;
list.getSelectionModel().clearSelection();