void () { JTextComponent component = getComponent(); handler.installListener(component.getDocument()); component.addPropertyChangeListener(handler); component.addMouseMotionListener(handler); component.addMouseListener(handler); component.addFocusListener(handler); setVariant(component.getClientProperty(VARIANT)); setMonospaced(component.getClientProperty(MONOSPACED)); }