[3177] in java-interest
Re: HelloWorldApplet does not work.
daemon@ATHENA.MIT.EDU (Ron van Hoof)
Thu Nov 2 12:45:44 1995
Date: Thu, 2 Nov 1995 09:40:10 -0500
From: rvhoof@nynexst.com (Ron van Hoof)
To: jeremyc@prgone.com
Cc: java-interest@java.sun.com
Hi Jeremy,
Try the following in your html-file:
<APPLET CODE="HelloWorlApplet.class" WIDTH=100 HEIGHT=100>
</APPLET>
You are using the 'alpha' tag for calling applets. The tag has
changed for beta-applets.
Enjoy,
Ron
>
> 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
>
---------------------------------------------------------------------
Ron van Hoof NYNEX Science & Technology, Inc.
Member of Technical Staff Research & Development
Work Systems Design Group
E-Mail: rvhoof@nynexst.com 400 Westchester Avenue, Rm 115a
Voice: (914) 644-2046 White Plains, NY 10604
Fax: (914) 949-9566 USA
---------------------------------------------------------------------
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com