Java JFrame架构中RootPane--GlassPane的应用
Java JFrame中从里到外由frame-layeredPane-contentPane-menuBar(optional)-glassPane构成。layered pane用处很大就不必说了。现在是其中glass pane的应用。
It contains a check box that lets you set whether the glass pane is "visible" — whether it can get events and paint itself onscreen. When the glass pane is visible, it blocks all input events from reaching the components in the content pane. It also paints a red dot in the place where it last detected a mouse-pressed event.