theGong = getAudioClip(getDocumentBase(), "sounds/gong.au"); if (theGong != null) { t = new Thread(this); t.start(); }
Thread.currentThread().setPriority(Thread.MIN_PRIORITY); while (true) { theGong.play(); try { Thread.sleep(5000); } catch (InterruptedException e) { } }
t.resume();
t.suspend();