Here you can find the source of drawBorder(Graphics g, Color c, int x, int y, int w, int h)
public static void drawBorder(Graphics g, Color c, int x, int y, int w, int h)
//package com.java2s; /*//from w w w. ja va 2 s . c om * Copyright 2005 MH-Software-Entwicklung. All rights reserved. * Use is subject to license terms. */ import java.awt.Color; import java.awt.Graphics; public class Main { public static void drawBorder(Graphics g, Color c, int x, int y, int w, int h) { g.setColor(c); g.drawRect(x, y, w - 1, h - 1); } }