O'Reilly logo

Filthy Rich Clients: Developing Animated and Graphical Effects for Desktop Java™ Applications by Romain Guy, Chet Haase

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required