[3162] in java-interest
HelloWorldApplet does not work.
daemon@ATHENA.MIT.EDU (Jeremy Cowgar)
Wed Nov 1 23:17:12 1995
From: Jeremy Cowgar <jeremyc@prgone.com>
To: "'Java Intrest Mail List'" <java-interest@java.sun.com>
Date: Wed, 1 Nov 1995 21:23:27 -0500
I cannot get the HelloWorldApplet to work in Netscape 2.0b1j, or HotJava =
for Windows95. Here is the applet source code that I have entered.
import java.applet.*;
import java.awt.*;
class HelloWorldApplet extends Applet {
public void init() {
resize(150,25);
}
public void paint(Graphics g) {
g.drawString("Hello World", 50, 25);
}
}
My HTML code is the following:
<HTML>
<HEAD><TITLE>Java Enhanced</TITLE></HEAD>
<BODY>
<APP CLASS=3D"HelloWorldApplet" WIDTH=3D100 HEIGHT=3D100>
<HR NOSHADE>
<A HREF=3D"classes/HelloWorldApplet.java">The Source</A>
</BODY>
</HTML>
The HelloWorldApplet compiled with no errors, and the =
HelloWorldApplet.class file is located in ./classes/ ... I have tried =
moving it to the same directory as example1.html, but nothing produces a =
HTML page with the text, Hello World, on it.
Please Help,
Jeremy Cowgar
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com