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: Disabling drop shadow on JWindows?




On 11-Jul-05, at 12:34 PM, Matt Drance wrote:

Hi Tim,

There's no clean way to get a Cocoa-Java NSWindow that corresponds to the one you want, but you can write a very light JAWT library that will give you the NSView/Window corresponding to your popup and then call setHasShadow:NO. Other developers have done this in the past, however, because of how JAWT works the call won't work until the component is first shown. That means there will be a slight flicker as the shadow appears for the split second before your setHasShadow call goes through.

I'm curious about this flicker issue.

As I understood things, a components native peer is "realized" when you call pack(). The javadoc for pack() indicates that "If the window and/or it's owner are not yet displayable, both are made displayable before calculating the preferred size."

Generally I was under the impression that JAWT just needs to have the native peer *displayable*, it doesn't have to be showing.

Is this not the case on the Mac?

Scott

_______________________________________________
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: 
 >Disabling drop shadow on JWindows? (From: Tim Boudreau <email@hidden>)
 >Re: Disabling drop shadow on JWindows? (From: Scott Palmer <email@hidden>)
 >Re: Disabling drop shadow on JWindows? (From: Tim Boudreau <email@hidden>)
 >Re: Disabling drop shadow on JWindows? (From: Matt Drance <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.