Newbie: some pointers please

S

sb5309

I am trying to test a simple java program from a server, it does not
work.

Java File
======

import java.awt.*;
import java.applet.*;

public class SyDb1 extends Applet
{
public void paint(Graphics g) {
g.drawString("SEAY alo!", 60, 75);
}

}


HTML File
=======

<html>

<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<title>New Page 1</title>
</head>

<body>
<applet code="SyDb1.class" width=800 height=150></applet>
</body>
</html>


Using Appletviewer.exe, it works. When open it from a web server, I
just see a box with the word "Java".

Is there anything I need to turn on at ther server ? Thanks.
 
J

John B. Matthews

I am trying to test a simple java program from a server, it does not
work. [...]
Using Appletviewer.exe, it works. When open it from a web server, I
just see a box with the word "Java".

Is there anything I need to turn on at ther server ? Thanks.

Your applet works for me. You might check you browser's Java console for
error messages:

<http://groups.google.com/group/comp.lang.java.programmer/browse_frm/thre
ad/71ffc9a44105bc03/a6701ffb3de63c12?hl=en&lnk=st&q=#a6701ffb3de63c12>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top