A JFrame
instance's layered pane contains two instances: an
optional menu bar and a content pane. The root pane contains
the layered pane and a glass pane. You use the glass pane when you
need a way to draw above all other panes or to intercept mouse events.