Chapter 1. Desktop Java Graphics APIs: Swing, AWT, and Java 2D

MAYBE it is because I am a graphics geek, but I always find it useful to have a picture in my mind of how the various pieces of libraries fit together. Bear with me while I create and describe such a diagram for the Desktop Java Graphics APIs.

In Figure 1-1, the interesting bit is in the middle: Swing, AWT, and Java 2D interact to provide the graphics and user interface libraries that your application, the piece on top, uses. Swing, Java 2D, and AWT are themselves running on top of the Java Runtime Environment, which includes the Java Virtual Machine as well as other Java libraries. The end result of all of these libraries is that your application can create windows, user interface ...

Get Filthy Rich Clients: Developing Animated and Graphical Effects for Desktop Java™ Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.