lalitalalwani
Oct 13, 2008, 09:05 AM
Hi,
Myself Lalita Lalwani,
I want to know how to write an applet to show permanent passion between HTML and applet?
Waiting for the reply...
naimlatifi
Feb 6, 2009, 01:21 AM
Hi,
Below I am making a simple applet and how it is implemented in html :
import java.applet.*;
import java.awt.*;
public class Simple extends Applet{
public void paint(Graphics g){
g.drawString("Hello World", 25,25);
}
}
now the implementation in html= go to notepad and write
<html>
<applet code = " Simple.class" width=300, height=300>
</applet>
</html>
after you create this html file you have to insert in the path where your class Simple.class is located in order to be executable.
Hope that this will help !
Naim