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