What Is Java 2D?

Java 2D enhances the AWT's support for graphics, fonts, colors, and images by introducing additional rendering options, new shapes, improved text management, buffered images, and a uniform rendering model for both screen and printer devices. These enhancements can lead to richer user interfaces and new kinds of Java applications.

The Java 2D API enables the creation of graphics libraries (such as CAD—Computer Assisted Drafting—libraries), special effects libraries for images, and read/write filters for use with the Java Media Framework (JMF). In fact, JMF uses Java 2D to perform its rendering tasks.

Graphics2D

When the time comes for a component to render its appearance, the component's paint method is called with ...

Get Special Edition Using Java 2 Standard Edition 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.