private void loadBackground ( ) { JFileChooser chooser = new JFileChooser ( "." ) ; chooser . setDialogTitle ( "Open" ) ; int resp = chooser . showOpenDialog ( this ) ; if ( resp == JFileChooser . APPROVE_OPTION ) { game . setBackgroundImage ( chooser . getSelectedFile ( ) ) ; } }
Load a background image to display behind the particle system