make JTextComponent highlight on update more generic