parent.addFocusListener(this); parent.addMouseListener(this); parent = c;
textComponent = c; textComponent.addFocusListener(this); textComponent.addMouseListener(this); textComponent.addMouseMotionListener(this);
    public void install(JTextComponent c)    {	parent.addFocusListener(this);	parent.addMouseListener(this);	parent = c;	repaint();    }