draw D Rect - Java 2D Graphics

Java examples for 2D Graphics:Rectangle

Description

draw D Rect

Demo Code


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

Related Tutorials