Okay, im still having trouble understanding this. Here's what I have and want to do:
if( health <= 0 ){
dead = 1;
g.setColor(Color.red);
g.drawString( "You are dead.", 135, 135 );
Thread.sleep(5000);
dispose();
}
I Want the JFrame to pause for 5 seconds, then exit.
Message was edited by:
ThunderCrasher