This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

[Q] mechanism of GlassPane  RSS feed

Geon Goo
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!