final JTextComponent textComponent = (JTextComponent) owner;
textComponent.select(textComponent.getCaretPosition(), textComponent.getCaretPosition());
}
else if (owner instanceof TextComponent)
{
final TextComponent textComponent = (TextComponent) owner;
textComponent.select(textComponent.getCaretPosition(), textComponent.getCaretPosition());
}
else if (owner instanceof JTable)
{
final JTable table = (JTable) owner;
table.clearSelection();