File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT / JFace and the fly likes [Q] mechanism of GlassPane Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT / JFace
Reply Bookmark "[Q] mechanism of GlassPane" Watch "[Q] mechanism of GlassPane" New topic
Author

[Q] mechanism of GlassPane

Geon Goo
Greenhorn

Joined: Jan 17, 2002
Posts: 2
Hello.
can I ask a question?
my question is about GlassPane.
I know that the glasspane is on top of all components in JFrame.
I tried to setVisible(true) and setOpaque(true) on glasspane.
and in the contentPane, I added a JButton.
in that case, the button I added is invisible(because glasspane covers all). but it works.(why?)
I think when the glasspane gets an AWTEvent, this event is forwarded to contentpane. but I can't find the source code that doing such thing.
would you tell me the principle about that?
thanks
 
IntelliJ Java IDE
 
subject: [Q] mechanism of GlassPane
 
Threads others viewed
Everyone's help needed!!!! @@
how to convert a bufferedImage into a string
GlassPane not redirecting events to deeper components
Need help with this code
making GlassPane visible
MyEclipse, The Clear Choice

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture