0

Why we need a Java glass pane?

Why we need a Java glass pane, I think the Layered and the Content Pane with the Menu Bar are enough Panes to work with a Frame container. I know that the glass Pane is hiden and that it can intercept input events for the root Pane, but the Content Pane is the same I think, so for what its usefull? Thanks in advance :)

7th Jan 2017, 7:58 PM
BraveHornet
BraveHornet - avatar
1 Antwort
+ 2
Content pane excludes the menu bar, glass pane does not. AND, and much more important, the class pane is not meant to contain elements but to function as a decoration of the overall composition of panes, layers, and so on: http://docs.oracle.com/javase/tutorial/uiswing/components/rootpane.html#glasspane
27th Feb 2017, 10:10 AM
Senfman
Senfman - avatar