I m facing a problem that when my animation starts the JFrame close button does not work & I have written
setDefaultClose Operation(JFram e.EXIT_ON_CLOSE );
and the animation loop is
public void game()
{
while(isVisible ())
{
paintworld();
updateworld();
try{
Thread.sleep(20 );
}
catch{Interrupt edException e){}
}
}
setDefaultClose Operation(JFram e.EXIT_ON_CLOSE );
and the animation loop is
public void game()
{
while(isVisible ())
{
paintworld();
updateworld();
try{
Thread.sleep(20 );
}
catch{Interrupt edException e){}
}
}
Comment