// Thread thingy to run at start thread public void run() { try { while (true) { gl.use(); spinDisplay(); Thread.sleep(10); } } catch (InterruptedException e) { // the user sent an interupt, // So lets exit... } }