public void focusLost(FocusEvent arg0) {
if (arg0.getID() == FocusEvent.FOCUS_LOST) {
if (isApplet) {
isFocused = false;
if ((gui != null && !gui.pausesGame()) || gui == null) {
gui = new GuiFocus(this, Game.WIDTH, Game.HEIGHT);
}
} else {
if ((gui != null && !gui.pausesGame()) || gui == null) {
gui = new GuiPause(this, Game.WIDTH, Game.HEIGHT);
}