Thank you very much for help from jh from california and sedj. The program was written because of a question in a book: "Write an application that inputs from the user the radius of a circle and prints the circle's diameter, circumference and area." I think the problem is fixed, now when the applet is being loaded, the window status shows "Applet CircleApplet loaded" and after the applet has printed the circle's diameter, circumference and area, the window status shows "Applet CircleApplet started". I'm using Internet Explorer 6 and the Java version is 1.4.0. The applet code is as below:
import javax.swing.*;
public class CircleApplet extends JApplet {
public void init()
{
String radValue;
int radius;
int diameter;
double circumference;
double area;
radValue = JOptionPane.showInputDialog ( "Enter value of the radius" );
radius = Integer.parseInt( radValue );
diameter = 2 * radius;
circumference = 2 * Math.PI * radius;
area = Math.PI * radius * radius ;
JOptionPane.showMessageDialog(
null, "For a circle with radius " + radius
+ "\nThe diameter is " + diameter
+ "\nThe circumference is " + circumference
+ "\nThe area is " + area );
}
}