This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes [Q] mechanism of GlassPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: [Q] mechanism of GlassPane
 
It's not a secret anymore!