5.8 Java API Packages
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 over 4,000 classes and other types. Some key Java API packages that we use in this book are described in Fig. 5.5, which represents only a small portion of the reusable components in the Java API.
Fig. 5.5 Java API packages (a subset)
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 26, Swing ... |
Get Java How To Program, Late 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.