writeWindowIcon(device, dialog, SInternalFrameEvent.INTERNAL_FRAME_CLOSED, closeIcon); cols++;
writeWindowIcon(device, dialog, SInternalFrameEvent.INTERNAL_FRAME_CLOSED, closeIcon); ++columns;
    protected void writeContent(final Device device, final SComponent component) throws IOException {        final SDialog dialog = (SDialog) component;        device.print("<table><tr>");        int cols = 0;        String text = dialog.getTitle();        if (text == null)            text = "Dialog";        // left icon        if (dialog.getIcon() != null) {            SIcon icon = dialog.getIcon();            device.print("<th");            org.wings.plaf.Utils.optAttribute(device, "width", icon.getIconWidth());            device.write(__class_framebut_1);            writeIcon(device, icon);            device.print("</th>");            cols++;        }        device.print("<th>");        org.wings.plaf.Utils.write(device, text);        device.print("</th>");        cols++;        if (dialog.isClosable() && closeIcon != null) {            writeWindowIcon(device, dialog, SInternalFrameEvent.INTERNAL_FRAME_CLOSED, closeIcon);            cols++;        }        device.print("</tr>");        device.write("<tr><td colspan=\"".getBytes());        org.wings.plaf.Utils.write(device, cols);        device.write("\">".getBytes());        super.writeContent(device, component);        device.write("</td></tr></table>\n".getBytes());    }