Y
yawnmoth
I have a file - HelloWorld.java that uses showStatus - and test.html
(that includes HelloWorld.class as an applet) - and... showStatus
doesn't seem to be working. According to the description on
java.sun.com...
"Requests that the argument string be displayed in the "status window".
Many browsers and applet viewers provide such a window, where the
application can inform users of its current state."
I'm not really sure what this status window they're refering to is, but
I assume it to, in FireFox, be the part that says "Applet HelloWorld
started". Unfortunately, that's not what I want it to say.
Here's HelloWorld.java:
import java.applet.Applet;
public class HelloWorld extends Applet
{
public void start()
{
showStatus("Hello, world!");
}
}
And here's test.html:
<applet width="1" height="1" code="HelloWorld.class">
</applet>
Any ideas?
Also, is there any way to output text other than showStatus or without
using java.awt.Graphics?
(that includes HelloWorld.class as an applet) - and... showStatus
doesn't seem to be working. According to the description on
java.sun.com...
"Requests that the argument string be displayed in the "status window".
Many browsers and applet viewers provide such a window, where the
application can inform users of its current state."
I'm not really sure what this status window they're refering to is, but
I assume it to, in FireFox, be the part that says "Applet HelloWorld
started". Unfortunately, that's not what I want it to say.
Here's HelloWorld.java:
import java.applet.Applet;
public class HelloWorld extends Applet
{
public void start()
{
showStatus("Hello, world!");
}
}
And here's test.html:
<applet width="1" height="1" code="HelloWorld.class">
</applet>
Any ideas?
Also, is there any way to output text other than showStatus or without
using java.awt.Graphics?