updateMetrics(); JTextComponent textComponent = (JTextComponent) getContainer();  g.setFont(textComponent.getFont()); selectedColor = textComponent.getSelectedTextColor(); unselectedColor = textComponent.getForeground(); disabledColor = textComponent.getDisabledTextColor();    selectedColor = Color.WHITE;  Rectangle rect = s.getBounds(); int lineHeight = metrics.getHeight();  int end = getEndOffset(); int currStart = getStartOffset(); int currEnd; while (currStart < end) { currEnd = calculateBreakPosition(currStart, end); drawLine(currStart, currEnd, g, rect.x, rect.y); rect.y += lineHeight; if (currEnd == currStart) currStart ++; else currStart = currEnd; }
    public void paint(Graphics g, Shape s)    {      // TODO Auto-generated method stub          }