d.append(" border=\"1\"");
d.append(" border=\"0\"");
    public void write(Device d, SLayoutManager l)        throws IOException    {        SGridLayout layout = (SGridLayout)l;        SContainer container = layout.getContainer();        List components = layout.getComponents();        boolean header = layout.getHeader();        boolean relative = layout.isRelative();        int width = layout.getWidth();        int cellSpacing = layout.getCellSpacing();        int cellPadding = layout.getCellPadding();        int border = layout.getBorder();        int cols = layout.getColumns();        int rows = layout.getRows();        d.append("\n<table");        if (cellSpacing >= 0)            d.append(" cellspacing=\"").append(cellSpacing).append("\"");        else            d.append(" cellspacing=\"0\"");        if (cellPadding >= 0)            d.append(" cellpadding=\"").append(cellPadding).append("\"");		CGUtil.writeSize( d, container );        if (border > 0)            d.append(" border=\"").append(border).append("\"");        else            d.append(" border=\"1\"");        if (container != null && container.getBackground() != null)            d.append(" bgcolor=\"#").                append(Utils.toColorString(container.getBackground())).append("\"");        d.append(">\n");        if (cols <= 0)            cols = components.size() / rows;        boolean firstRow = true;        int col = 0;        for (Iterator iter = components.iterator(); iter.hasNext();) {            if (col == 0)                d.append("<tr>");            else if (col%cols == 0 && iter.hasNext()) {                d.append("</tr>\n<tr>");                firstRow = false;            }            SComponent c = (SComponent)iter.next();            if (firstRow && header) {                d.append("<th>");            }            else {                d.append("<td");                Utils.appendTableCellAlignment(d, c);                d.append(">\n");            }            c.write(d);            if (firstRow && header)                d.append("</th>");            else                d.append("</td>");            col++;            if (!iter.hasNext())                d.append("</tr>\n");        }        d.append("</table>");    }