updateMetrics();
selectedColor = comp.getSelectedTextColor(); unselectedColor = comp.getForeground(); disabledColor = comp.getDisabledTextColor(); selectedColor = comp.getSelectedTextColor(); lineHeight = metrics.getHeight(); g.setFont(comp.getFont());
  public void paint(Graphics g, Shape a)  {    JTextComponent comp = (JTextComponent)getContainer();    selectionStart = comp.getSelectionStart();    selectionEnd = comp.getSelectionEnd();    updateMetrics();    super.paint(g, a);  }