Here you can find the source of drawBorder(Graphics2D g2d, Color borderColor, int x, int y, int width, int height)
public static void drawBorder(Graphics2D g2d, Color borderColor, int x, int y, int width, int height)
//package com.java2s; //License from project: Apache License import java.awt.*; public class Main { public static void drawBorder(Graphics2D g2d, Color borderColor, int x, int y, int width, int height) { g2d.setColor(borderColor);/* w w w .j a va2 s . c om*/ g2d.drawRect(0, 0, width, height); } }