Java examples for 2D Graphics:Rectangle
fill 3D Rectangle
//package com.java2s; import java.awt.Color; import java.awt.Graphics2D; public class Main { public static void fill3DRect(Graphics2D offLineBuffer, Color color, int x, int y, int width, int height) { offLineBuffer.setColor(color);/* w w w . ja v a 2 s . co m*/ offLineBuffer.fill3DRect(x, y, width, height, true); } }