Here you can find the source of drawMenuBezel(Graphics g, Color background, int x, int y, int width, int height)
private static void drawMenuBezel(Graphics g, Color background, int x, int y, int width, int height)
//package com.java2s; /*//from www . jav a2 s . c o m * %W% %E% * * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ import java.awt.Color; import java.awt.Graphics; public class Main { private static void drawMenuBezel(Graphics g, Color background, int x, int y, int width, int height) { // shadowed button region g.setColor(background); g.fillRect(x, y, width, height); g.setColor(background.brighter().brighter()); g.drawLine(x + 1, y + height - 1, x + width - 1, y + height - 1); g.drawLine(x + width - 1, y + height - 2, x + width - 1, y + 1); g.setColor(background.darker().darker()); g.drawLine(x, y, x + width - 2, y); g.drawLine(x, y + 1, x, y + height - 2); } }