apologies if this is effectively a CocoaComponent FAQ - i couldn't
find anything specific about it.
i'm bridging my Swing application to WebKit using CocoaComponent, and
in general things have been going smoothly and the views display
nicely.
one problem i am having however is a WebKit crash if dispose() is
called on the JFrame hosting the CocoaComponent. usually i call
dispose() from windowClosed() or similar, and that seems to work fine
in Java world. however when AppKit gets involved, the dispose() seems
to happen in the middle of a redraw somehow and [NSViewAWT drawRect:]
crashes.
so far i've managed to avoid any thread sync issues but i'm a little
baffled by this one. i'm clear that calling
CocoaComponent.sendMessage() makes things happen in the AppKit
thread, but i'm trying to call a Java method here rather than
something off the attached JNI object.
another lesser issue i'm having is that i don't seem to be able to
get the CocoaComponent to receive focus when the window comes up. it
always requires an initial click to get mouseovers working etc.
any help gratefully appreciated.
j
_______________________________________________
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