d.append("<table><tr><TD VALIGN=\"TOP\">");
d.append("<table><tr><td valign=\"top\">");
    protected void writeFormButton(Device d, SButton button)        throws IOException    {        Icon icon = button.getIcon();        String text = button.getText();        int horizontalTextPosition = button.getHorizontalTextPosition();        int verticalTextPosition = button.getVerticalTextPosition();        String iconAddress = button.getIconAddress();        if (icon == null && iconAddress == null)            writeFormText(d, button);        else if (text == null)            writeFormIcon(d, button);        else {            // Hauptsache, es funktioniert !!!            if (verticalTextPosition == TOP && horizontalTextPosition == LEFT) {                d.append("<table><tr><TD valign=top>");                writeFormText(d, button);                d.append("</td><td>");                writeFormIcon(d, button);                d.append("</td></tr></table>\n");            } else if (verticalTextPosition == CENTER && horizontalTextPosition == LEFT) {                d.append("<table><tr><td>");                writeFormText(d, button);                d.append("</td><td>");                writeFormIcon(d, button);                d.append("</td></tr></table>\n");            } else if (verticalTextPosition == BOTTOM && horizontalTextPosition == LEFT) {                d.append("<table><tr><TD valign=bottom>");                writeFormText(d, button);                d.append("</td><td>");                writeFormIcon(d, button);                d.append("</td></tr></table>\n");            } else if (verticalTextPosition == TOP && horizontalTextPosition == CENTER) {                d.append("<table><tr><td>");                writeFormText(d, button);                d.append("</td></tr><tr><td>");                writeFormIcon(d, button);                d.append("</td></tr></table>\n");            } else if (verticalTextPosition == CENTER && horizontalTextPosition == CENTER) {                d.append("<table><tr><td>");                writeFormText(d, button);                d.append("</td><td>");                writeFormIcon(d, button);                d.append("</td></tr></table>\n");            } else if (verticalTextPosition == BOTTOM && horizontalTextPosition == CENTER) {                d.append("<table><tr><td>");                writeFormIcon(d, button);                d.append("</td></tr><tr><td>");                writeFormText(d, button);                d.append("</td></tr></table>\n");            } else if (verticalTextPosition == TOP && horizontalTextPosition == RIGHT) {                d.append("<table><tr><TD VALIGN=\"TOP\">");                writeFormIcon(d, button);                d.append("</td><TD ALIGN=\"RIGHT\">");                writeFormText(d, button);                d.append("</td></tr></table>\n");            } else if (verticalTextPosition == CENTER && horizontalTextPosition == RIGHT) {                d.append("<table><tr><td>");                writeFormIcon(d, button);                d.append("</td><TD ALIGN=\"RIGHT\">");                writeFormText(d, button);                d.append("</td></tr></table>\n");            } else if (verticalTextPosition == BOTTOM && horizontalTextPosition == RIGHT) {                d.append("<table><tr><TD VALIGN=\"BOTTOM\">");                writeFormIcon(d, button);                d.append("</td></tr><tr><TD ALIGN=\"RIGHT\">");                writeFormText(d, button);                d.append("</td></tr></table>\n");            } else {                d.append("<table><tr><td>");                writeFormIcon(d, button);                d.append("</td></tr><tr><td>");                writeFormText(d, button);                d.append("</td></tr></table>\n");            }        }    }