首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Java JFrame架构中RootPane-GlassPane的使用

2012-12-27 
Java JFrame架构中RootPane--GlassPane的应用Java JFrame中从里到外由frame-layeredPane-contentPane-menu

Java JFrame架构中RootPane--GlassPane的应用

Java JFrame中从里到外由frame-layeredPane-contentPane-menuBar(optional)-glassPane构成。layered pane用处很大就不必说了。现在是其中glass pane的应用。



Java JFrame架构中RootPane-GlassPane的使用

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.

热点排行