public static void drawHighlightBorder(Graphics g, int x, int y,
                                           int width, int height, boolean raised,
                                           Color shadow, Color highlight) {
        final Color oldColor = g.getColor();
        g.translate(x, y);

        g.setColor(raised ? highlight : shadow);
        g.drawLine(0, 0, width - 2, 0);
        g.drawLine(0, 1, 0, height - 2);

        g.setColor(raised ? shadow : highlight);
        g.drawLine(width - 1, 0, width - 1, height - 1);
        g.drawLine(0, height - 1, width - 2, height - 1);

        g.translate(-x, -y);
        g.setColor(oldColor);
    }
Draws a single-line highlight border rectangle.

@param g         The graphics context to use for drawing.
@param x         The left edge of the border.
@param y         The top edge of the border.
@param width     The width of the border.
@param height    The height of the border.
@param raised    <code>true</code> if the border is to be drawn raised,
                 <code>false</code> if lowered.
@param shadow    The shadow color for the border.
@param highlight The highlight color for the border.
@see javax.swing.border.EtchedBorder
@see javax.swing.plaf.basic.BasicGraphicsUtils#drawEtchedRect
starter/src/main/java/org/jivesoftware/openfire/launcher/GraphicUtils.java