Here you can find the source of drawLoweredBezel(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
public static void drawLoweredBezel(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight)
//package com.java2s; //License from project: Open Source License import java.awt.Color; import java.awt.Graphics; public class Main { public static void drawLoweredBezel(Graphics g, int x, int y, int w, int h, Color shadow, Color darkShadow, Color highlight, Color lightHighlight) { g.setColor(darkShadow);//ww w .j av a2 s. com g.drawLine(0, 0, 0, h - 1); g.drawLine(1, 0, w - 2, 0); g.setColor(shadow); g.drawLine(1, 1, 1, h - 2); g.drawLine(1, 1, w - 3, 1); g.setColor(lightHighlight); g.drawLine(0, h - 1, w - 1, h - 1); g.drawLine(w - 1, h - 1, w - 1, 0); g.setColor(highlight); g.drawLine(1, h - 2, w - 2, h - 2); g.drawLine(w - 2, h - 2, w - 2, 1); } }