FileDocCategorySizeDatePackage
RelativeGong.javaAPI DocExample649Thu Apr 03 15:19:58 BST 1997None

RelativeGong

public class RelativeGong extends Applet implements Runnable

Fields Summary
AudioClip
theGong
Thread
t
Constructors Summary
Methods Summary
public voidinit()


    theGong = getAudioClip(getDocumentBase(), "sounds/gong.au");
    if (theGong != null) {
      t = new Thread(this);
      t.start();
    }
  
  
public voidrun()

    
    Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
    while (true) {
      theGong.play();
      try {
        Thread.sleep(5000);
      }
      catch (InterruptedException e) {
      }
    }
  
  
public voidstart()

    t.resume();
  
public voidstop()

    t.suspend();