oops! the message got truncated.
here it is again.
remove the main method from the calcg class, and put in a JApplet subclass.
Also, create the instance of the calcg class in the init() method of the JApplet.
e.g.
public class CalJApplet extends JApplet{
public void init(){
//create the instance of calcg
}
public static void main(
String args[]){
//create the instance of calcg
}
}
-Shashi