Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: floating palette windows



Hi Sciss,

AFAIK, the Aqua look and feel does not support decorated palette windows.

Please notice, that discussions in this mailing list are just of informal
nature. If you like to have such a feature supported by the Aqua look and
feel in the future, you have to submit a feature request to Apple.


For my own applications, I have implemented a floating palette handler.
I register all document windows and all palette windows in the handler.
When the handler detects that none of the registered windows has focus, it
hides all palette windows. It brings the palette windows back, when a
document windows gains focus.


To support the visual style of palette windows, and to circumvent the
minimal framed window size limit, I have implemented a window decoration on
my own, in my Quaqua look and feel.

Here are some screenshots:
http://www.randelshofer.ch/quaqua/guide/jrootpane.html

And here is the download page:
http://www.randelshofer.ch/quaqua/download.html

Of course, the design might become obsolete with future versions of OS X.
But for current and older versions of OS X it is just fine. And you can
always deliver an update of your application in case it breaks. Or you can
provide a preferences setting so that users can switch the Quaqua look and
feel off.

With kind regards,
Werner Randelshofer


On 31.05.06 17:34 Uhr, "Sciss" at <email@hidden> wrote:
> i would love to have some of my app windows appear as floating
> palette windows (always on top and with a very small window bar
> only). i know that as of java 1.5 i can use setAlwaysOnTop. but what
> is the best way to get the frame bar look like those small palettes
> (which you know from photoshop etc.)? is there a trick to tell the
> Aqua LnF to use these instead of the big ones? otherwise, i know i
> could use setUndecorated and use custom frame bar painting, but then
> it might not be consistent with future versions of the Mac OS X ...
> 
> also related : is there any trick to circumvent the stupid
> restriction of decorated jframes being minimum 128 pixels wide ?
> 
> thanks, -sciss-

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden

References: 
 >floating palette windows (From: Sciss <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.