fill 3D Rectangle - Java 2D Graphics

Java examples for 2D Graphics:Rectangle

Description

fill 3D Rectangle

Demo Code


//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);
    }
}

Related Tutorials