Aymen++
03-31-2004, 05:29 AM
i have java creator (JCreator), and i started a new applet, after compiling and executing, JCreator created a folder named with the same name of the applet and contains the web page that supposed to view the applet and the applet class also, when i wanted to view the web page the applet didn't appear? why?
this is the .java code:
import java.awt.*;
import java.applet.*;
public class Aymen extends Applet {
public void init() {
}
public void paint(Graphics g) {
g.drawString("This is the first applet", 50, 60 );
}
}
and this is the html code:
<HTML>
<HEAD>
</HEAD>
<BODY>
<CENTER>
<APPLET
code = "Aymen.class"
width = "500"
height = "300"
>
</APPLET>
</CENTER>
</BODY>
</HTML>
this is the .java code:
import java.awt.*;
import java.applet.*;
public class Aymen extends Applet {
public void init() {
}
public void paint(Graphics g) {
g.drawString("This is the first applet", 50, 60 );
}
}
and this is the html code:
<HTML>
<HEAD>
</HEAD>
<BODY>
<CENTER>
<APPLET
code = "Aymen.class"
width = "500"
height = "300"
>
</APPLET>
</CENTER>
</BODY>
</HTML>