2 messages in net.java.dev.jna.usersRe: [jna-users] JFrame becomes dragg...
FromSent OnAttachments
Marko NovakovicAug 9, 2007 5:09 am 
Timothy WallAug 9, 2007 9:13 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] JFrame becomes draggable when applied setWindowMask()Actions...
From:Timothy Wall (twal@dev.java.net)
Date:Aug 9, 2007 9:13:38 am
List:net.java.dev.jna.users

On Aug 9, 2007, at 8:09 AM, Marko Novakovic wrote:

Yes, this is exactly the problem! JFrame becomes draggable when applied setWindowMask( Window w, Shape shape )? On my Windows machine, this works fine, but on my Mac version, JFrame becomes draggable. Why this?

I am using setUndecorated(false);

This is a side-effect of the OSX implementation of window transparency. You might be able to override it by adding a mouse handler to your JFrame and marking events on the content as consumed unless they're in the title bar.

Or you can check the Apple java dev list (java@lists.apple.com) to see if there's a canonical way to turn off frame dragging when the frame is transparent.