<AWT Dev> Thoughts about 6402325 (Swing toolbars vs native toolbars on Windows)
Anthony Petrov
Anthony.Petrov at Sun.COM
Tue Aug 25 09:17:25 PDT 2009
Hi Mike,
On 08/25/2009 07:58 PM, Mike Swingler wrote:
> Java on Mac OS X already implements similar functionality with a Swing
> client property "Window.style" -> "small", so we welcome this addition
> to the formal Java API specification.
I'm glad to hear that!
> To on Mac OS X, the underlying AppKit framework does not support
> changing the NSWindow style mask on the fly. Could the specification be
> written to require the type to be set prior to the native peer becoming
> realized?
Since some platforms may allow changing the property on the fly, others
may require hiding and subsequent showing the window w/o recreating the
peer, and third require recreating the peer, it would be great to
provide the highest level of support to Java applications when running
on a given platform.
What about
Throwing an exception in case the Java implementation is unable to
change the style when the peer is realized?
-OR-
Providing a sort of getWindowTypeChangeSupportLevel() method, and having
the setType() method to silently store the passed argument for future needs?
Although both options are not as nice as we would want. Perhaps you
could suggest something else?
--
best regards,
Anthony
More information about the awt-dev
mailing list