4 messages in net.java.dev.jna.usersRe: [jna-users] Transparent Window
FromSent OnAttachments
Jain, Anant (GE Healthcare)Feb 3, 2009 3:08 am 
Timothy WallFeb 3, 2009 3:51 am 
Jain, Anant (GE Healthcare)Feb 3, 2009 4:06 am 
Timothy WallFeb 3, 2009 5:52 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] Transparent WindowActions...
From:Timothy Wall (twal@dev.java.net)
Date:Feb 3, 2009 3:51:06 am
List:net.java.dev.jna.users

If the overlay doesn't need to extend beyond the window, you don't need a window; you can use a transparent JPanel. There are numerous examples of implementing overlays in Swing (see
http://rabbit-hole.blogspot.com/2006/04/decoratingoverpainting-swing.html , http://rabbit-hole.blogspot.com/2006/11/waiting-and-blocking-input.html , or the JXLayer project on java.net).

If you really need a window, just map the bounds of the window to match that of the JFrame.

On Feb 3, 2009, at 6:09 AM, Jain, Anant (GE Healthcare) wrote:

Hi,

I have a requirement to create a transparent window in the middle of a Jframe. Earlier, we had the window on one of the edges of the frame so the polygon could be specified the appropriate co-ordinates to go around the window.

But now I need to create with no contact with the edge. So how would I specify the coordinates of the window in this case?

Thanks AJ