In the loop?
Type: Posts; User: jingojang
In the loop?
Okay, I changed it a bit and got the applet to start but now it returns a value of 0.0 when I type in the digits for radius and height.
import java.awt.Container;
import javax.swing.JApplet;...
I'm sorry about that. The variables radius and height does not work, here are the errors from the console:
java.lang.NullPointerException
at sun.misc.FloatingDecimal.readJavaFormatString(Unknown...
Hi, why doesn't this work?
import java.awt.Container;
import javax.swing.JApplet;
import javax.swing.JOptionPane;
import javax.swing.JTextArea;
public class CylinderApplet extends JApplet {