why is that when I put the button on a while statement with other method such as the paint() and the fullscreen method with update.


public void gameLoop(){
long startTime =...