Chapter 3. Swing Component Basics
The previous chapter showed how easy it is to create some impressive
programs with Swing components. Now it’s time to dig in a
little deeper. We begin this chapter by presenting an overview of a few
key (but lower-level) helper classes such as Action
, GraphicsContext
, ChangeEvent
, and PropertyChangeEvent
, as well as the HeadlessException
exception. We spend the
remainder of the chapter introducing the JComponent
class, the heart and soul of all
Swing components.
Get Java Swing, 2nd 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.