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: Java Applet Embedding in Tiger




On Mar 30, 2006, at 4:35 PM, Eric Feigenson wrote:


Hello all...

Once apon a time, I did some work in OS 9 using JManager to embed a Java applet in a window.  Fast forward to today, where I'm trying to do the same with in OS X Tiger.  But in Tiger, there is no JManager.  There was a "Java Embedding Framework", but its been deprecated.  Searching the list archives and other Apple documentation I find I need to use the "Java Applet.plugin" to do this.

However, I can't find any description of how to actually use that plugin with my application.  Almost every reference I can find to it talks about how to use it with existing web browsers, and I'm not even writing a web browser.  I need a description of the API that the Java Applet.plugin provides (and I'm talking about the Apple-supplied Java Applet.plugin, since I think there's some open-source versions floating around as well)

 I basically need to write something that works like "Applet Launcher" in the Developer tools->Applications->Java Tools folder. 

Do you want something lightweight that replicates (more or less) /usr/bin/appletviewer? That's roughly what Applet Launcher gives you. Or do you want the full functionality of the Java Plugin?

If you want the latter, and are writing a Cocoa application, your best bet is to look at WebKit. Create a WebView, and have it load the URL to the applet, and the details of applet loading are pretty much taken care of for you. If you're writing a Carbon application, you should also be able to create an HIWebView and do the same thing.

For AppletLauncher-level functionality, we don't have much in the way of an API or officially-sanctioned mechanisms. It's easier (I think) to just use WebKit, but if that doesn't work we can probably come up with something else.

Scott

------------------
Scott Kovatch
Apple Computer
Java Runtime Classes
Cleveland Hts, OH
email@hidden

I am Scott Kovatch, and I approved this message.

 _______________________________________________
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: 
 >Java Applet Embedding in Tiger (From: "Eric Feigenson" <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.