Hmm... I would be skeptical, as well. From what I have read, frames must be opaque:
 
http://www.jguru.com/forums/view.jsp?EID=413716
 
I have yet to confirm this in the JavaDoc's, but it seems reasonable. I toyed with taking snapshots of the desktop and painting the background of the frame with those snapshots, but there are some issues with windows under the frame. I also looked at using 3rd party software to make windows transparent:
 
http://www.codeproject.com/w2k/trans.asp
http://www.stardock.net/media/mediakit_winfx.html
 
But making a Java application become transparent (using W2K API calls) does not seem to work too well (lots of flashing and broken paint() methods).
 
I also tried subclassing JFrame and using an AlphaComposite to draw the background. No good there, either.
 
Although it is interesting, I do not know if it can be done. If you do happen to find a way, please let me know!
 
Regards,
John

John Ghidiu
Benderson Development Company Inc.
[EMAIL PROTECTED]
(716) 878-9376

-----Original Message-----
From: John Bodenschatz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 10:37
To: JDJList
Subject: [jdjlist] Re: Transparent Frame

It was transparent. As the application behind it changed you could see the change through the transparent frame.

 John Ghidiu <[EMAIL PROTECTED]>wrote:

Was it transparent, or did it just have a snapshot of the screen as its background?
 
Regards,
John

John Ghidiu
Benderson Development Company Inc.
[EMAIL PROTECTED]
(716) 878-9376

-----Original Message-----
From: Zlatko Kostadinov [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 03:23
To: JDJList
Subject: [jdjlist] Re: Transparent Frame

I heard that it is possible with jdk1.4 and only on OS that support transparecy. Maybe u have to check in the new swing features...
 
Regards
Zlatko
----- Original Message -----
To: JDJList
Sent: Thursday, July 11, 2002 5:12 AM
Subject: [jdjlist] Transparent Frame

Does anyone know how to take a JFrame and make the entire frame translucent (see through)?  I saw a custom application that did this. The developer said that it was 100% Java and no native code was written for it. They also would not point me in the direction of how to do this so I'm sceptical if it was really 100% Java.

I have looked at the ColorModel class but don't see any way to set the transparent information.

Thanks



Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access To change your membership options, refer to: http://www.sys-con.com/java/list.cfm
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm


YBIC - John 6:54
John Bodenschatz
[EMAIL PROTECTED]
AIM screen name jcbode1



Do You Yahoo!?
New! SBC Yahoo! Dial - 1st Month Free & unlimited access To change your membership options, refer to: http://www.sys-con.com/java/list.cfm
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to