Skip to main content

Transparency

3 replies [Last post]
Anonymous

I have googled and searched Sun's website regarding Transparency and I've come up dry. Is there anyway to make a JFrame or JMenuItem Transparent? Thanks, Jeremy

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
nightrider
Offline
Joined: 2003-06-11

hava a look at NativeSkin
http://www.l2fprod.com/

(works only for Windows, though)

jtr
Offline
Joined: 2003-06-10

There are ways to make UI objects "seem" transaparent, but they all currently involve using Robot. This might be fixed in JDK 1.5. See http://developer.java.sun.com/developer/bugParade/bugs/4479178.html

davetron5000
Offline
Joined: 2003-06-10

I believe there is in OS X. Someone posted some code for doing this as a comment to one of the blogs on javadesktop.org I can't recall which one, but there's not too many. As for non OS X, I doubt there is a cross-platform way. Since Apple did translucent menus for their Aqua look and feel, it's certainly possible, but it probably involves native code and modifying an existing look and feel.