Chapter 9. Glass Pane
THE glass pane is one of the most marvelous features of Swing. Despite a misleading name, the glass pane has proven over the years to be a unique asset to any Swing developer who wants to create advanced effects in user interfaces. To understand the qualities of the glass pane and why it is so important to Filthy Rich Clients, you first need to understand the layout of Swing’s frames and dialogs.
Despite their appearance, JFrame
, JDialog
, JWindow
, and JInternalFrame
are not flat containers. Swing windows always contain a single child, an instance of JRootPane
. A root pane is a unique container, made of a glass pane and of a JLayeredPane
. We explore JLayeredPane
in more detail later, but you need to know that the root pane’s ...
Get Filthy Rich Clients: Developing Animated and Graphical Effects for Desktop Java™ Applications 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.