Graphics Examples


The Graphics Class
With Java's graphics capabilities, you can draw lines, shapes, characters,
and images to the screen inside your applet. Most of the graphics operations
in Java are methods defined in the Graphics class. You don't have to create
an instance of Graphics in order to draw something in your applet; in your
applet's paint() method, you are given a Graphics object. By drawing on
that object, you draw onto your applet and the results appear on screen.
JAVA API reference :
java.awt.Graphics

Northest Parallel Architectures Center,
Syracuse University.
Send comments or suggestions to balsoy@npac.syr.edu.
Last modified Nov 20, 96.