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 Transparent JcomboBox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Transparent JcomboBox" Watch "Transparent JcomboBox" New topic
Author

Transparent JcomboBox

Sathish Nayak
Greenhorn

Joined: Mar 13, 2008
Posts: 3
Hi,
How to make JComboBox Transparent. I have got code for making editor transparent. How to make drop down list transparent?
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 43980
    
  33
Welcome to the Ranch.

Not sure, but have you tried setOpaque(false)?
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
you won't do it with the standard popup, or dialogs or frames.
you would have to build your own popup.

However, there appears to be a translucent option in a very recent (test?) version.
Haven't tested it, so the link is probably worth a read

http://www.pushing-pixels.org/?p=260
Sathish Nayak
Greenhorn

Joined: Mar 13, 2008
Posts: 3
Thank you for reply.
Can i get some code of custom combobox with transparent popdown.
Sathish Nayak
Greenhorn

Joined: Mar 13, 2008
Posts: 3
Please Any Help......
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transparent JcomboBox
 
It's not a secret anymore!