curveShape.curveTo(w * .167f, h * 1.2f, w * .667f, h * -.5f, w,
h * .75f);
curveShape.lineTo(w, h);
curveShape.lineTo(0, h);
curveShape.lineTo(0, h * .8f);
curveShape.closePath();
// draw into the buffer a gradient (bottom to top), and the text "Login"
GradientPaint gp = new GradientPaint(0, h, UIManager
.getColor("JXLoginPane.banner.darkBackground"), 0, 0, UIManager
.getColor("JXLoginPane.banner.lightBackground"));