} else if (vertical != TOP && horizontal == CENTER || vertical != BOTTOM && horizontal == CENTER) {
} else if (vertical != SConstants.TOP && horizontal == SConstants.CENTER || vertical != SConstants.BOTTOM && horizontal == SConstants.CENTER) {
    public static void printIconTextCompound(Device d, String icon, String text, int horizontal, int vertical)            throws IOException {        if (icon == null && text != null)            d.print(text);        else if (icon != null && text == null)            d.print(icon);        else if (icon != null && text != null) {            boolean textFirst = vertical == TOP || (vertical == CENTER && horizontal == LEFT);            String first = textFirst ? text : icon;            String last = textFirst ? icon : text;            d.print("<table>");            if (vertical != TOP && horizontal == LEFT ||                    vertical != BOTTOM && horizontal == RIGHT) {                d.print("<tr><td>");                write(d, first);                d.print("</td><td></td></tr><tr><td></td><td>");                write(d, last);                d.print("</td></tr>");            } else if (vertical != TOP && horizontal == RIGHT ||                    vertical != BOTTOM && horizontal == LEFT) {                d.print("<tr><td></td><td>");                write(d, first);                d.print("</td></tr><tr><td>");                write(d, last);                d.print("</td><td></td></tr>");            } else if (vertical != TOP && horizontal == CENTER ||                    vertical != BOTTOM && horizontal == CENTER) {                d.print("<tr><td>");                write(d, first);                d.print("</td></tr><tr><td>");                write(d, last);                d.print("</td></tr>");            } else if (vertical != CENTER && horizontal == LEFT ||                    vertical != CENTER && horizontal == RIGHT) {                d.print("<tr><td>");                write(d, first);                d.print("</td><td>");                write(d, last);                d.print("</td></tr>");            }            d.print("</table>");        }    }