g.setColor(color); g.drawLine(x, y, x, y + height);
if (textComponent == null) return;  int dot = getDot(); Rectangle rect = null;  try { rect = textComponent.modelToView(dot); } catch (BadLocationException e) {  return; }  if (rect == null) return;      if (visible) { g.setColor(textComponent.getCaretColor()); g.drawLine(rect.x, rect.y, rect.x, rect.y + rect.height); }
    public void paint(Graphics g)    {	g.setColor(color);    g.drawLine(x, y, x, y + height);    }