package javaapplication3;
import java.applet.Applet;
import java.awt.*;
/*<applet code="NewApplet" width="3000" height="80">
<param name="fontName" value="Courrier"></applet>*/
public class NewApplet extends Applet{
int c,d;
public void start(){
c=9;d=8;
}
public void paint(Graphics g)
{
g.drawString("Muliplication"+c*d,0,10);
}
}
I have read many advantages/disadvantages of Java applet in many sites, but still I want to know some things:
- Is it necessary for a user to have JDK and JRE installed on his/her system to run applet on web browser?
- Will this program makes the browser to download these two packages (
java.applet.Applet
,java.awt.*
)? - Is using Applet good or bad?