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: painting in Java to a (native) NSView possible?




On Sep 27, 2006, at 8:27 PM, Rob Ross wrote:



On Sep 27, 2006, at 6:10 PM, Greg Guerin wrote:

Rob Ross wrote:

Is there a way to provide some kind of  wrapper/bridge object  in
Java (via JNI) to a native NSView class so that I can make Java2D
drawing calls to something like an  "NSViewJComponent" from Java,
treating it like a JComponent from within Java?

AFAIK there's JAWT and CocoaComponent: <http://developer.apple.com/technotes/tn2005/tn2147.html#TNTAG2>

-- GG

Thanks for responding.

I've looked at both of these, and they are actually the opposite of what I am trying to find. I want to do

Java2D ---do drawing---> JavaAWT ---> JNI ---> Cocoa ---> draw into NSView.

The JAWT and Cocoa components let you do

Cocoa -- do drawing --> NSView --> JNI --> JavaAWT --> draw into Java Component

You were asking about NSImage a bit back as I remember. What about converting the java to an image that Cocoa can render into the NSView?



Mike Hall mikehall at spacestar dot net http://www.spacestar.net/users/mikehall http://sourceforge.net/projects/macnative



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: 
 >Re: painting in Java to a (native) NSView possible? (From: Greg Guerin <email@hidden>)
 >Re: painting in Java to a (native) NSView possible? (From: Rob Ross <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.