use of WOJavaClientApplet
use of WOJavaClientApplet
- Subject: use of WOJavaClientApplet
- From: Andres Toussaint <email@hidden>
- Date: Sun, 6 Feb 2005 11:43:49 -0600
HI all:
I am trying to use a Java Client application as an Applet, but have been unsuccessful. The same Java Client app starts fine with JNLP--webStart.
Is it possible to show a Java Client as an Applet? and if so, how is it done?
myApplet is a simple NIB that has only one Window object and a NSTextField with some text in it. The NIB window is set to 300x300.
The java console gives me this error:
java.lang.ClassCastException
at sun.applet.AppletPanel.createApplet(AppletPanel.java:617)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1946)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:546)
at sun.applet.AppletPanel.run(AppletPanel.java:298)
at java.lang.Thread.run(Thread.java:552)
I try to show it as an applet in the Main component. Here is the code for this component:
Main.html:
<HTML>
<HEAD>
</TITLE>
</HEAD>
<BODY>
<CENTER>
Please
<WEBOBJECT NAME=JavaClientLink>click here</WEBOBJECT>
to start javaclientapplet through WebStart.
</CENTER>
<HR>
<WEBOBJECT NAME=JavaClientComponent2></WEBOBJECT>
</BODY>
</HTML>
--------------------------------------------
Main.wod:
JavaClientComponent2: WOJavaClientApplet {
height = "300";
width = "300";
interfaceControllerClassName = "javaclientapplet.client.myApplet";
code = "javaclientapplet.client.myApplet";
codebase = "/WebObjects/Java";
}
JavaClientLink: WOHyperlink {
href = javaClientLink;
}
--------------------------------------------
Environment:
WebObjects 5.2.3 Developer
Mac OS X 10.3.7
xCode 1.5 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden