java.awt.Component

Every AWT component is ultimately an extension of the java.awt.Component class. java.awt.Component is an abstract class that encapsulates the common functionality among AWT components. In fact, so much functionality is embedded in the Component class that it provides a whopping 120 public methods. Instead of discussing each and every method, we'll focus on the basic aspects of components that you are likely to deal with on a regular basis. Note that some aspects of components are discussed in other places in Graphic Java, for instance, attaching a popup menu to a component is discussed in “Popup Menus”, and while containers are discussed at length in “Components, Containers, and Layout Managers”—we will not repeat such discussions ...

Get Graphic Java™ 1.2, Volume I: AWT, Third 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.