rightStyle = style.getIdent(CSSName.BORDER_STYLE_RIGHT); if (rightStyle == IdentValue.NONE || border.right == 0) {
if ( border.noRight()) {
    public static void paint(Rectangle bounds, int sides, CalculatedStyle style, Graphics g, RenderingContext ctx, int xOffset) {        //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 topStyle = null;        IdentValue leftStyle = null;        IdentValue bottomStyle = null;        IdentValue rightStyle = null;        if ((sides & TOP) == TOP) {            topStyle = style.getIdent(CSSName.BORDER_STYLE_TOP);            if (topStyle == IdentValue.NONE || border.top == 0) {                sides -= TOP;            }        }        if ((sides & LEFT) == LEFT) {            leftStyle = style.getIdent(CSSName.BORDER_STYLE_LEFT);            if (leftStyle == IdentValue.NONE || border.left == 0) {                sides -= LEFT;            }        }        if ((sides & BOTTOM) == BOTTOM) {            bottomStyle = style.getIdent(CSSName.BORDER_STYLE_BOTTOM);            if (bottomStyle == IdentValue.NONE || border.bottom == 0) {                sides -= BOTTOM;            }        }        if ((sides & RIGHT) == RIGHT) {            rightStyle = style.getIdent(CSSName.BORDER_STYLE_RIGHT);            if (rightStyle == IdentValue.NONE || border.right == 0) {                sides -= RIGHT;            }        }        //Now paint!        if ((sides & TOP) == TOP)            paintBorderSide(border, g, bounds, border_color, sides, TOP, topStyle, xOffset);        if ((sides & LEFT) == LEFT)            paintBorderSide(border, g, bounds, border_color, sides, LEFT, leftStyle, xOffset);        if ((sides & BOTTOM) == BOTTOM)            paintBorderSide(border, g, bounds, border_color, sides, BOTTOM, bottomStyle, xOffset);        if ((sides & RIGHT) == RIGHT)            paintBorderSide(border, g, bounds, border_color, sides, RIGHT, rightStyle, xOffset);    }