7 messages in net.java.dev.jna.usersRe: [jna-users] Transparent window
FromSent OnAttachments
Yana StamchevaAug 21, 2008 3:28 pm 
Timothy WallAug 21, 2008 3:50 pm 
Timothy WallAug 21, 2008 3:54 pm 
Yana StamchevaAug 21, 2008 4:30 pm 
Yana StamchevaAug 21, 2008 4:48 pm 
Yana StamchevaAug 22, 2008 2:18 am 
Timothy WallAug 22, 2008 5:02 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:Yana Stamcheva (yana@gmail.com)
Date:Aug 21, 2008 4:30:50 pm
List:net.java.dev.jna.users

Thanks for your reply, Timothy!

Yes, we're using OSX. We've just tried with the new version of WindowUtils and here's what happens: Only calling WindowUtils.setWindowTransparent(mainFrame, true) fixes the drag and drop problem but we get a 100% transparent window. This is not quite what we need though so we're setting a semi transparent content pane to our window, which reverts to the old drag behaviour. Is there a way to have the semi-transparency and not have the window draggable? Are we missing something?

Yana

On Fri, Aug 22, 2008 at 1:54 AM, Timothy Wall <twal@dev.java.net>wrote:

On Aug 21, 2008, at 6:29 PM, Yana Stamcheva wrote:

In our application we're using WindowUtils and AlphaMaskDemo as a base

BTW, there's nothing in AlphaMaskDemo that's necessary for transparency. Once you call WindowUtils.setWindowTransparent(w, true), individual pixel transparency will be preserved.

Originally AlphaMaskDemo had all the grimy details of per-platform transparency implementations, but all of that is now encapsulated (and cleaned up) in WindowUtils.