What This Book Covers
This book gives a complete introduction to the entire Swing component set. Of course, it shows you how to use all of the components: how to display them on the screen, register for events, and get information from them. You’d expect that in any Swing book. This book goes much further. It goes into detail about the model-delegate architecture behind the components and discusses all of the data models. Understanding the models is essential when you’re working on an application that requires something significantly different from the components’ default behavior. For example, if you need a component that displays a different data type or one that structures data in some nonstandard way, you’ll need to work with the data models. This book also discusses how to write “accessible” user interfaces and how to create your own look-and-feel.
There are a few topics this book doesn’t cover, despite its girth.
We assume you know the Java language. For Swing, it’s particularly important to
have a good grasp of inner classes (both named and anonymous), which are
used by Swing itself and in our examples. We assume that you understand
the JDK 1.1 event model, Java’s mechanism for communicating between
asynchronous threads. Swing introduced many new event types, all of
which are discussed in this book, but we provide only an overview of the
event mechanism as a whole. We also assume that you understand the older
AWT components, particularly the Component and Container classes, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access