Applet using html

Step 1: Create a java source file with name AppletDemo.java that is name of java class and it is mandatory that classname and filename must be same.
Applet class must be public.

Step 2: Run cmd(command prompt) and compile java source file, AppletDemo.class file'll build.

Step 3: Double click on html file.


Download Code Link 1
Download Code Link 2

output:

More Applet Topics :

No comments: