

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
7 messages in net.java.dev.jna.usersRe: [jna-users] Transparent window| From | Sent On | Attachments |
|---|---|---|
| Yana Stamcheva | Aug 21, 2008 3:28 pm | |
| Timothy Wall | Aug 21, 2008 3:50 pm | |
| Timothy Wall | Aug 21, 2008 3:54 pm | |
| Yana Stamcheva | Aug 21, 2008 4:30 pm | |
| Yana Stamcheva | Aug 21, 2008 4:48 pm | |
| Yana Stamcheva | Aug 22, 2008 2:18 am | |
| Timothy Wall | Aug 22, 2008 5:02 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | Re: [jna-users] Transparent window | Actions... |
|---|---|---|
| From: | Timothy Wall (twal...@dev.java.net) | |
| Date: | Aug 22, 2008 5:02:28 am | |
| List: | net.java.dev.jna.users | |
Apple concurs:
http://developer.apple.com/technotes/tn2007/tn2196.html#APPLE_AWT_DRAGGABLEWINDOWBACKGROUND
I'll add a note to that effect in the javadoc.
On Aug 22, 2008, at 5:19 AM, Yana Stamcheva wrote:
Hi Timothy,
We found it. The problem was that we were calling setTransparent after the window is set to visible. The transparency was working just fine this way, but apparently the "apple.awt.draggableWindowBackground" should be set before the heavyweight peer for the Window is created, otherwise it does not take effect. It works great now!
Cheers, Yana
On Fri, Aug 22, 2008 at 2:48 AM, Yana Stamcheva <yana...@gmail.com
wrote:
Oups, sorry Timothy. Actually it seams that even with just calling setWindowTransparent we get the same behavior. We'll make some more tests and see why this fix does not work in our case.
Thanks again! Yana
On Fri, Aug 22, 2008 at 2:31 AM, Yana Stamcheva <yana...@gmail.com
wrote:
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.







