Meaningless Drivel is fun!
The moose likes Swing / AWT / SWT and the fly likes Transperant Panel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Transperant Panel" Watch "Transperant Panel" New topic

Transperant Panel

mitesh mehta

Joined: Aug 29, 2002
Posts: 25
I want to add a transperant Panel over a Frame.
Can any please suggest how to do it?
Any help will be appreciated.
Thank you.
Rene Liebmann
Ranch Hand

Joined: May 02, 2002
Posts: 196
what is the reason for adding a transparent panel?
A JFrame already has a transparent pane, the GlassPane. Maybe this is enough for you?
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

"mitesh_mehta" -

Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it here.

Hmmm... maybe you should look at the GlassPane API that Rene suggested... JPanel also has a setOpaque() method that might be of use to you...

Thanks! and welcome to the JavaRanch!

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: Transperant Panel
It's not a secret anymore!