Window::pause()
Pauses the game: run() is no longer called, and timers, gliding
and animations stand still. The window keeps drawing, so the paused
picture stays visible, and keys and clicks still reach methods like
whenKeyPressed, so a key can resume() the game.
Examples
Syntax
Java
.pause()
Return
void