Applet : A first Example
public void paint(Graphics g) {
// draw the black border of rectangle.
g.drawRect(9, 9, 332, 102);
g.drawRect(8, 8, 334, 104);
g.drawRect(7, 7, 336, 106);
g.setColor(Color.lightGray);
g.fillRect(10, 10, 330, 100);
// set the Helvetica font
// draw the shadow of the text
g.drawString(message, 40, 75);
g.drawString(message, 37, 72);