Java examples for 2D Graphics:Rectangle
draw D Rect
//package com.java2s; import java.awt.Color; import java.awt.Graphics; public class Main { public static void draw3DRect(Graphics offLineBuffer, Color color, int x, int y, int width, int height) { offLineBuffer.setColor(color);/*from ww w . ja va 2 s . c o m*/ offLineBuffer.draw3DRect(x, y, width, height, true); } }