Events not being dispatched when having native Cocoa component in modal JDialog
Events not being dispatched when having native Cocoa component in modal JDialog
- Subject: Events not being dispatched when having native Cocoa component in modal JDialog
- From: Martin Nedbal <email@hidden>
- Date: Tue, 30 Mar 2010 22:52:18 +0200
Hi,
I have a simple JNI-based code for embedding WebKit into Swing GUI (I
can post sources if needed). It works fine while in regular Swing JFrame
but it fails to work when added to modal JDialog - events are blocked
apparently. WebKit view shows properly, but if I request a page to be
loaded into it it's not loaded and FrameLoaderDelegate does not get
didFinishLoadForFrame nor didFail* calls.
I wasn't able to find much about this issue in Google/Apple mailing
lists. The only thing I found was a thread from 2005 discussing nasty
workaround based on having non-modal dialog with blocking loop after
setVisible() call.
It can be reproduced on Snow Leopard with latest Java6 installed but it
does not really seems to be dependent on versions that much.
Any ideas how to solve this problem in a clean way?
PS: I already tried posting to Java-dev mailing list but got no reply
whatsoever;(
Thanks.
Best regards,
Martin
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden