Search:

Type: Posts; User: jingojang

Search: Search took 0.10 seconds.

  1. Replies
    8
    Views
    920

    Re: CylinderApplet

    In the loop?
  2. Replies
    8
    Views
    920

    Re: CylinderApplet

    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;...
  3. Replies
    8
    Views
    920

    Re: CylinderApplet

    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...
  4. Replies
    8
    Views
    920

    CylinderApplet

    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 {
Results 1 to 4 of 4