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: Mixing Cocoa Java and Java AWT Q&A



thanks Greg!
I didn't have any illusions about that :-)
of course they require JNI and that's not bad at all (well at least for me)
gl4java and jogl use jawt as well
I implemented webkit-java integration with cocoa component
I also have opengl-java integration example with CocoaComponent
I love CocoaComponent :-)
seriously I like it very much, thanks for that
little bit slow but very elegant

On Feb 27, 2004, at 12:32 AM, Greg Bolsinga wrote:

These both require JNI, and so are A-OK w/ the Q&A. JAWT is used by Java3D, and the CocoaComponent documents some thread issues in its javadocs.



of course, I saw that:


 Do not block the AWT event dispatch thread. Doing so will likely result in a deadlock.
 Once the NSView you are using has been added to the Cocoa view hierarchy on the AppKit thread, all calls on the implementation's NSView must be made on the AppKit thread.
 If it is necessary to coordinate and synchronized activities between the AppKit's main thread and an AWT Event Dispatching thread, you may block the AppKit's main thread while waiting on activities on the AWT Event Dispatching thread. Remember though not to block the AWT thread.


On Feb 26, 2004, at 9:17 PM, Dmitry Markman wrote:

you can mix native GUI element with java via
1. JAWT interfaces (fully documented and well supported)
2. CocoaComponent class (fully documented and well supported)


Dmitry Markman
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Mixing Cocoa Java and Java AWT Q&A (From: Greg Bolsinga <email@hidden>)
 >Re: Mixing Cocoa Java and Java AWT Q&A (From: Dmitry Markman <email@hidden>)
 >Re: Mixing Cocoa Java and Java AWT Q&A (From: Greg Bolsinga <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.