Improved JTextComponent document listener method/class.