What is a Glass Pane ? and how should I use it ... please give an example. Thanks.

:rolleyes: :rolleyes: :rolleyes: :rolleyes: :rolleyes:

Hey sani,

Did you check out Sun's Glass pane docs?
http://java.sun.com/docs/books/tutorial/uiswing/components/rootpane.html

They have good descriptions.

I've used glass panes to pop an invisible pane on top of the GUI elements to intercept mouse events. Unfortunately the last one I wrote is in the thick of a program to control robots, so I can't isolate it to give you.


Ed

Thanks cosi !
I prefered to use JLayeredPane ... cuz I was not understanding glass pane ... but the link you gave me was a great help... Thanks again.