How do I make my Java 7 OSX App draggable on toolbar only ?
Hendrik Schreiber
hs at tagtraum.com
Mon Nov 4 01:37:36 PST 2013
On Nov 4, 2013, at 10:05 AM, Paul Taylor wrote:
> Nevermind I found a solution, I used UnifiedToolbar from thehttp://code.google.com/p/macwidgets/ project with Java 6. Since moving to Java 7 and no longer using UnifiedToolbar I couldn't see a solution but delving into their code simply using WindowsDragger class works perfectly well
>
> i.e.
>
> new WindowsDragger(frame, toolbar);
> new WindowsDragger(frame, statusbar)
>
> In contrast the "apple.awt.draggableWindowBackground" option is only really useful if happy for the whole frame to be draggable.
In other words: it's not useful.
But it would be great, if there was something that worked the way Paul used it originally. I.e. a property that can be set on a panel that makes it so that you can drag the window by dragging a panel/container.
-hendrik
More information about the macosx-port-dev
mailing list