pathIdxWidth = 0;
pathIdxWidth = 1;
    public String getColumn(Path p) {        final int size = 30;        final String path = p.getPath();        if (path.length() <= size) {            return path;        }        final int pathIndex = m_paths.indexOf(p);        // compute String.valueOf(pathIndex).length() without creating a        // throw-away String object.        int pathIdxWidth;        if (pathIndex == 0) {            pathIdxWidth = 0;        } else {            pathIdxWidth = 0;            for (int i = pathIndex; i > 0; i /= 10) { pathIdxWidth++; }        }        StringBuffer result = new StringBuffer(size);        result.append(path.substring(0, size - pathIdxWidth));        result.append(pathIndex);        return result.toString();    }