131132133134135136137138139140141
@Override public void setVisible ( boolean aFlag ) { if ( !aFlag ) { tetris.pauseGame (); } super.setVisible ( aFlag ); } }; tetrisFrame.setFrameIcon ( loadIcon ( "game.png" ) );
204205206207208209210211212213214
{ tetris.unpauseGame (); } else { tetris.pauseGame (); } } } ); } } );
220221222223224225226227228229230
addActionListener ( new ActionListener () { @Override public void actionPerformed ( ActionEvent e ) { tetris.pauseGame (); tetrisFrame.close (); } } ); } } );