Search:

Type: Posts; User: soradogoof

Search: Search took 0.09 seconds.

  1. Replies
    6
    Views
    2,013

    Re: NullPointerException problem

    Okay, I changed the
    pa.fillOval(100,100,50,50); to just repaint(). This got rid of my NullPointException error but now, the initial circle is drawn and nothing else happens.
    This is what my code...
  2. Replies
    6
    Views
    2,013

    Re: NullPointerException problem

    The exception occurs here:


    public void run()
    {
    pa.fillOval(200,200,50,50);
    }

    I made Graphics pa object static to get rid of an "unable to reference a nonstatic...
  3. Replies
    6
    Views
    2,013

    NullPointerException problem

    I just recently learned how to incorporate time into my programs. Specifically using the Timer and TimerTask classes to make a specific action occur after a certain amount of times, and repeat every...
Results 1 to 3 of 4