thanks Scott for the answer
webkit solution will work, I'm pretty sure
there is an example how to use webkit for Carbon applications
/Developer/Examples/WebKit/CarbonWeb/CarbonWeb.xcodeproj
you can test
/Developer/Examples/Java/Applets/Animator/example1.html
but unlike Safari Carbon version is too "flicky" :-)
so it should be improved
but I'd like to communicate with JVM:
to send/receive messages from applet's classes via JNI
also I'd like to embed some Java GUI
(not necessary applet)
into my application
so is it possible to get JVM from WebKit?
or I can use JNI's JNI_GetCreatedJavaVMs method?
and if that method will return few instances of JVM which one I have to choose?
thank you very much
On Friday, March 31, 2006, at 11:23AM, Eric Feigenson <email@hidden> wrote:
>
><<Original Attached>> _______________________________________________
>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
>
Dmitry Markman, PhD
Hi Scott! Thanks so much for your
reply!
Unfortunately, I'm not in a Cocoa app,
but a Carbon app (sorry, I should have mentioned that). All I need
is something really lightweight. I want to say: Here's an applet,
here's a window, run the applet in that window (basically what Applet Launcher
seems to do). For OS 9 I used JManager to do this (I was told, in
those days, I was one of probably only three people that used JManager.
Oh such fun! ;-)). Just to be clear, I can't actually use Applet
Launcher (or appletviewer) because I need to do this embedded within my
application. My application has Java byte code that it wants to run
as an applet, so it just wants to open a window, and run the applet in
that window. Sometime in the uncertain future, we might want to embed
the applet in separate window (a window with other stuff in it), as opposed
to it running in its own window, but that's not something I don't need
to worry about right now.
I just started poking around in Interface
Builder to see about using the "WebView" object it provides,
but alas, that only seems to be available for a Cocoa app. I assume
that corresponds to the "WebKit" you mention.
The only reason I mentioned the Java
Applet.plugin was that the Apple Java 1.4.2 release notes said that's what
to use since there's no JManager anymore and the Java Embedding Framework
has been deprecated. But it sounds like Java Applet.plugin provides
way more than I need, from what you said. Is there documentation
for that thing anywhere? I haven't been able to find any.
So, if you could help me find some way
to do what I need (my very lightweight applet-in-a-window) in the Carbon
environment, it would be MUCH appreciated.
Thanks so much for your help!
-Eric
Scott Kovatch <email@hidden> wrote on
03/31/2006 11:02:38 AM:
> 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