java 3 dimensional rectangle

Java Draw 3 D Rectangles

Drawing Rectangles Java graphics supports 3 types drawing rectangles. Right-angled rectangles Round-cornered rectangles 3-D Rectangles Java requires width and height of the rectangle and x and y coordinates where rectangle is be drawn. Java does not include a special method, something like drawSquare(), to draw a square. Square can be…