poly.addPoint(bounds.x + bounds.width, bounds.y + bounds.height);
poly.addPoint(bounds.x + bounds.width - 1, bounds.y + bounds.height - 1);
    private static void paintGoodBevel(final Graphics g, final Rectangle bounds, final Border border, final BorderColor high, final BorderColor low, final int sides) {        int rightCorner = (((sides & RIGHT) == RIGHT) ? border.right : 0);        int leftCorner = (((sides & LEFT) == LEFT) ? border.left : 0);        int topCorner = (((sides & TOP) == TOP) ? border.top : 0);        int bottomCorner = (((sides & BOTTOM) == BOTTOM) ? border.bottom : 0);        Polygon poly;        if ((sides & TOP) == TOP) {            poly = new Polygon();            poly.addPoint(bounds.x, bounds.y);            poly.addPoint(bounds.x + bounds.width, bounds.y);            poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + border.top);            poly.addPoint(bounds.x + leftCorner, bounds.y + border.top);            g.setColor(high.topColor);            g.fillPolygon(poly);        }        if ((sides & BOTTOM) == BOTTOM) {            poly = new Polygon();            poly.addPoint(bounds.x + bounds.width - rightCorner, bounds.y + bounds.height - border.bottom);            poly.addPoint(bounds.x + leftCorner, bounds.y + bounds.height - border.bottom);            poly.addPoint(bounds.x, bounds.y + bounds.height);            poly.addPoint(bounds.x + bounds.width, bounds.y + bounds.height);            g.setColor(low.bottomColor);            g.fillPolygon(poly);        }        if ((sides & RIGHT) == RIGHT) {            poly = new Polygon();            poly.addPoint(bounds.x + bounds.width, bounds.y);            poly.addPoint(bounds.x + bounds.width - border.right, bounds.y + topCorner);            poly.addPoint(bounds.x + bounds.width - border.right, bounds.y + bounds.height - bottomCorner);            poly.addPoint(bounds.x + bounds.width, bounds.y + bounds.height);            g.setColor(low.rightColor);            g.fillPolygon(poly);        }        if ((sides & LEFT) == LEFT) {            poly = new Polygon();            poly.addPoint(bounds.x, bounds.y);            poly.addPoint(bounds.x + border.left, bounds.y + topCorner);            poly.addPoint(bounds.x + border.left, bounds.y + bounds.height - bottomCorner);            poly.addPoint(bounds.x, bounds.y + bounds.height);            g.setColor(high.leftColor);            g.fillPolygon(poly);        }    }