[4220] in java-interest

home help back first fref pref prev next nref lref last post

running applets from hotjava

daemon@ATHENA.MIT.EDU (Debra Scott)
Wed Dec 13 18:38:39 1995

Date: Wed, 13 Dec 1995 16:07:53 +0600
From: debra@sunbrew.Central.Sun.COM (Debra Scott)
To: java-interest@java.Eng.Sun.COM

I'm new to learning Java and using the hotjava browser.

My question is:

	I wrote a simple applet that runs fine with
appletviewer, but does not run in hotjava.

Code:
	HelloWorld.java

//
// Sample HelloWorld applet
//
import java.awt.Graphics;
import java.applet.Applet;

public class HelloWorld extends Applet {

	public void paint (Graphics g){
		g.drawString("Hello world!", 25, 25);
	}
}

The .html file that I use in appletviewer is:
	HelloWorld.html

<title>Test</title>
<hr>
<applet code=HelloWorld.class width=200 height=100>
</applet>
<hr>


I looked at the .html files under the demo directory of the hotjava.A3
browser (for example, Hangman.html) and notice they don't use
<applet code = ...> but rather <app class= ...>

The demo applets run from hotjava. What does one have to do to
create an applet (and corresponding .html file) that runs in
the browser?


Thanks for any info.
-Debbie

-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com

home help back first fref pref prev next nref lref last post