Shapes
[ Home ] [ Up ] [ Introduction ] [ The Swing Package ] [ Frames ] [ Panes, Text & Fonts ] [ Colors ] [ Shapes ] [ Paint Modes ] [ Images ]

 

Simple Shapes
Java 2D Shapes

 

Originally, Java only provided relatively simple support for drawing shapes.  This support was provided in the java.awt.Graphics class, and was very limited:

  • You could only draw a limited set of shapes:
    • Lines, rectangles, ellipses, etc.
  • You could not vary the line thickness.  It was always set at 1.
  • You could not rotate, or otherwise transform the shapes. 

Then, in JDK 1.2, a richer level of support was added for drawing shapes.  It was called the Java 2D library.  

 

This page was last modified on 02 October, 2007