public void startLWJGL ( ) { if ( gameThread != null ) { return ; } gameThread = new Thread ( ) { public void run ( ) { try { canvas . start ( ) ; } catch ( Exception e ) { e . printStackTrace ( ) ; if ( Display . isCreated ( ) ) { Display . destroy ( ) ; } displayParent . setVisible ( false ) ; //removeAll(); add ( new ConsolePanel ( e ) ) ; validate ( ) ; } } } ; gameThread . start ( ) ; }
Start a thread to run LWJGL in