6.8 Java API Packages
As you’ve seen, Java contains many predefined classes that are grouped into categories of related classes called packages. Together, these are known as the Java Application Programming Interface (Java API), or the Java class library. A great strength of Java is the Java API’s thousands of classes. Some key Java API packages that we use in this book are described in Fig. 6.5, which represents only a small portion of the reusable components in the Java API.
Fig. 6.5
Package | Description |
---|---|
java.awt.event |
The Java Abstract Window Toolkit Event Package contains classes and interfaces that enable event handling for GUI components in both the
java.awt and javax.swing packages. (See Chapter |
Get Java How to Program, Early Objects, 11th 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.