Here you can find the source of drawEdge(Graphics g, int w, int h)
static public void drawEdge(Graphics g, int w, int h)
//package com.java2s; //License from project: Open Source License import java.awt.*; public class Main { static final Color CIBOX = new Color(113, 111, 100); static public void drawEdge(Graphics g, int w, int h) { drawEdge(g, 0, 0, w, h);//w ww . ja v a 2 s . c om } static public void drawEdge(Graphics g, int x, int y, int w, int h) { g.setColor(CIBOX); g.drawLine(x, y, x + w - 1, y); g.drawLine(x, y, x, y + h - 1); g.setColor(Color.lightGray); g.drawLine(x + w - 1, y + h - 1, x, y + h - 1); g.drawLine(x + w - 1, y + h - 1, x + w - 1, y); } }