if (count != numLines) { numLines = count; preferenceChanged(this, false, true); }
    public void paint(Graphics g, Shape s)    {      Rectangle rect = s.getBounds();      int end = getEndOffset();      int currStart = getStartOffset();      int currEnd;            while (currStart < end)        {          currEnd = calculateBreakPosition(currStart, end);          drawLine(currStart, currEnd, g, rect.x, rect.y + metrics.getAscent());          rect.y += lineHeight;                    if (currEnd == currStart)            currStart ++;          else            currStart = currEnd;                  }    }