Example #1
0
 public void activate() {
   active = true;
   microphone.flush();
   speaker.flush();
   speaker.start();
   blocker.release();
   microphone.start();
   microphone.flush();
 }
  public void actionPerformed(ActionEvent ev) {
    String action = ev.getActionCommand();

    if (action.equals("ok")) {
      cancelled = false;
      if (dialog != null) {
        dialog.dispose();
      }
      blocker.release();
    } else if (action.equals("cancel")) {
      cancelled = true;
      if (dialog != null) {
        dialog.dispose();
      }
      blocker.release();
    } else if (setType(action)) {
    } else if (setBPP(action)) {
    } else {
    }
  }
 public ImageTypeConvertOp activate() {
   display();
   try {
     blocker.acquire();
   } catch (InterruptedException ie) {
     return null;
   }
   if (cancelled) {
     return null;
   }
   return new ImageTypeConvertOp(params);
 }
Example #4
0
 public void pickup() {
   pickup.release();
 }