ident = style.getIdent(CSSName.BORDER_STYLE_TOP); if (ident == IdentValue.NONE || border.top == 0) {
topStyle = style.getIdent(CSSName.BORDER_STYLE_TOP); if (topStyle == IdentValue.NONE || border.top == 0) {
    public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx) {        //Graphics g = c.getGraphics();        //CalculatedStyle style = c.getCurrentStyle();        BorderColor border_color = style.getBorderColor();        //int width = (int) bounds.getWidth();        //int height = (int) bounds.getHeight();        Border border = style.getBorderWidth(ctx);        IdentValue ident = null;        if ((sides & TOP) == TOP) {            ident = style.getIdent(CSSName.BORDER_STYLE_TOP);            if (ident == IdentValue.NONE || border.top == 0) {                sides -= TOP;            }        }        if ((sides & LEFT) == LEFT) {            ident = style.getIdent(CSSName.BORDER_STYLE_LEFT);            if (ident == IdentValue.NONE || border.left == 0) {                sides -= LEFT;            }        }        if ((sides & BOTTOM) == BOTTOM) {            ident = style.getIdent(CSSName.BORDER_STYLE_BOTTOM);            if (ident == IdentValue.NONE || border.bottom == 0) {                sides -= BOTTOM;            }        }        if ((sides & RIGHT) == RIGHT) {            ident = style.getIdent(CSSName.BORDER_STYLE_RIGHT);            if (ident == IdentValue.NONE || border.right == 0) {                sides -= RIGHT;            }        }        if (sides != 0)            paintBorderSides(border, g, bounds, border_color, sides, ident);    }