Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: replacement for AquaImageFactory.drawFrameTitleBackground
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: replacement for AquaImageFactory.drawFrameTitleBackground



On Jun 16, 2009, at 9:52 AM, email@hidden wrote:

Hi Mike et al,

There are already discussions on the latest JDK6 update on Mac. We (JIDE)
are using AquaImageFactory.drawFrameTitleBackground to paint the both active
and inactive title bar background for DockableFrame. We understood the
method is considered as the implementation detail and could be removed in
the future but we didn't have other choice. With the new release, the method
is no longer there. We just want to use the same way as you paint the
JInternalFrame title pane background. I wonder what is the recommended
approach for this removed method. Looking forward to your advice.

JInternalFrames are implemented in the Aqua Look and Feel to fulfill the compatibility requirements of the Java language specification TCK. The JInternalFrame implementation is a gross violation of the Apple Human Interface guidelines which explicitly forbids any sort of MDI- like window-inside-of-a-window shenanigans. I don't recommend any Swing developers use them on any platform.


For the JIDE docking framework, I'd really recommend drawing a Safari or Terminal-like tab look that doesn't try to mimic a window title bar with its close, minimize, and zoom controls. The concepts of minimize and zoom really don't map onto the idea of a dockable panel (what's the distinction between close and minimize? when would you ever want to maximize? no such thing as zoom-to-fit?).

A tab-like interface with a single close/collapse button, should be ideal when docked inside of the window - and if you support dragging the panels into their own palette-style windows, then I'd recommend using the standard palette window chrome using the "Window.style" client property (see <http://developer.apple.com/technotes/tn2007/tn2196.html >). For all these reasons, don't expect to see a public method call that will draw a window title bar (you'll notice that the AquaImageFactory routine continued to draw Tiger-style title bars after Leopard had changed it's title bars to dark grey).

Thanks much for looking into this,
Mike Swingler
Java Runtime Engineer
Apple Inc.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >replacement for AquaImageFactory.drawFrameTitleBackground (From: <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.