Filthy Rich Clients: Developing Animated and Graphical Effects for Desktop Java™ Applications
by Chet Haase, Romain Guy
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 ...
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