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...
Type: Posts; User: soradogoof
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...
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...
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...