public void start ( ) throws SlickException { SwingUtilities . invokeLater ( new Runnable ( ) { public void run ( ) { try { Input . disableControllers ( ) ; try { Display . setParent ( CanvasGameContainer . this ) ; } catch ( LWJGLException e ) { throw new SlickException ( "Failed to setParent of canvas" , e ) ; } container . setup ( ) ; scheduleUpdate ( ) ; } catch ( SlickException e ) { e . printStackTrace ( ) ; System . exit ( 0 ) ; } } } ) ; }
Start the game container rendering