GraphicsUtil Demo
This is a simple demonstration of the GraphicsUtil package, which adds
pen widths to most drawing operations, plus a few other small
features. Source code for this demo is at
GraphicsUtilDemo.java,
source code for the GraphicsUtil package itself is at
GraphicsUtil.java, and
the GraphicsUtil documentation is at
GraphicsUtil.html.
Please note
that GraphicsUtil was made to work around drawing limitations in
Java 1.1 and 1.02. Java 1.2 provides much better drawing.
For that, please see my
Java2D Tutorial.
GraphicsUtil appears in
Core Web Programming from Prentice
Hall Publishers (ISBN 0-13-625666-X, 1400 pages).
You can browse, download, and adapt any of the other 250+ Java classes and
200+ HTML and JavaScript documents presented in the
book. To get started, see
the source code archive.