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

Reply via email to