for (int i = 0; i < _lineWidth; i++) {
for (int i = 0; i < getLineWidth(); i++) {
    public void paint(Graphics g) {        if (!(isVisible()))            return;        //System.out.println("FigText.paint: x/y = " + _x + "/" + _y);        //System.out.println("FigText.paint: top-/bottomMargin = " + _topMargin        // + "/" + _botMargin);        int chunkX = _x + _leftMargin;        int chunkY = _y + _topMargin;        StringTokenizer lines;        if (_filled) {            g.setColor(_fillColor);            g.fillRect(_x, _y, _w, _h);        }        if (_lineWidth > 0) {            g.setColor(_lineColor);            // test linewidth            if (_lineWidth == 1) {                // paint single rectangle                g.drawRect(_x, _y, _w - _lineWidth, _h - _lineWidth);            } else {                // paint <linewidth rectangles                for (int i = 0; i < _lineWidth; i++) {                    // a rectangle is painted as four connecting lines                    g.drawLine(_x + i, _y + i, _x + _w - i - 1, _y + i);                    g.drawLine(_x + _w - i - 1, _y + i, _x + _w - i - 1, _y                            + _h - i - 1);                    g.drawLine(_x + _w - i - 1, _y + _h - i - 1, _x + i, _y                            + _h - i - 1);                    g.drawLine(_x + i, _y + _h - i - 1, _x + i, _y + i);                }            }        }        if (_font != null)            g.setFont(_font);        _fm = g.getFontMetrics(_font);        //System.out.println("FigText.paint: font height = " +        // _fm.getHeight());        int chunkH = _fm.getHeight() + _lineSpacing;        //System.out.println("FigText.paint: chunkH = " + chunkH);        chunkY = _y + _topMargin;        if (_textFilled) {            g.setColor(_textFillColor);            lines = new StringTokenizer(_curText, "\n\r", true);            while (lines.hasMoreTokens()) {                String curLine = lines.nextToken();                //if (curLine.equals("\r")) continue;                int chunkW = _fm.stringWidth(curLine);                switch (_justification) {                case JUSTIFY_LEFT:                    break;                case JUSTIFY_CENTER:                    chunkX = _x + (_w - chunkW) / 2;                    break;                case JUSTIFY_RIGHT:                    chunkX = _x + _w - chunkW - _rightMargin;                    break;                }                if (curLine.equals("\n") || curLine.equals("\r"))                    chunkY += chunkH;                else                    g.fillRect(chunkX, chunkY, chunkW, _fm.getHeight());            }        }        g.setColor(_textColor);        chunkX = _x + _leftMargin;        chunkY = _y + _topMargin + _fm.getHeight() - _fm.getDescent();        //System.out.println("FigText.paint: chunkY = " + chunkY);        lines = new StringTokenizer(_curText, "\n\r", true);        while (lines.hasMoreTokens()) {            String curLine = lines.nextToken();            //if (curLine.equals("\r")) continue;            int chunkW = _fm.stringWidth(curLine);            switch (_justification) {            case JUSTIFY_LEFT:                break;            case JUSTIFY_CENTER:                chunkX = _x + (_w - chunkW) / 2;                break;            case JUSTIFY_RIGHT:                chunkX = _x + _w - chunkW;                break;            }            if (curLine.equals("\n") || curLine.equals("\r"))                chunkY += chunkH;            else {                if (_underline)                    g.drawLine(chunkX, chunkY + 1, chunkX + chunkW, chunkY + 1);                drawString(g, curLine, chunkX, chunkY);            }        }    }