[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-macosx-port-dev
Subject:    Re: Bring Java windows into foreground when dragging over them
From:       Robert_Krüger <krueger () lesspain ! de>
Date:       2014-01-04 13:14:45
Message-ID: CAEnqZEVHDi-A9U2Eh5=hmwDU1PKE2jL1bD4dKxQ3WkHo6VjFyw () mail ! gmail ! com
[Download RAW message or body]

On Sat, Jan 4, 2014 at 2:02 AM, Mike Swingler <swingler@apple.com> wrote:
> On Jan 3, 2014, at 10:13 AM, David DeHaven <david.dehaven@oracle.com> wrote:
> 
> > 
> > > when I drag something over a Finder window that is partially in the
> > > background it automatically brings itself in the background after a
> > > short delay. Is this something I have to specifically program into my
> > > Java application or is there some global flag/property to activate
> > > this behavior or anything else I have to know to achieve this
> > > properly?
> > 
> > I don't think that's a "free" behavior. It's possible the DnD handlers in Finder \
> > are just pushing the target window to the front after the delay. 
> > You should be able to do the same by calling Frame.toFront() after some delay.
> 
> This is not standard AppKit behavior, but rather, standard Carbon / Classic Mac OS \
> behavior. At this point, Finder is simply emulating this behavior programmatically. \
> As David says, Frame.toFront() should do the right thing in this case. 

Thanks to both of you! I will do that then.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic