コード例 #1
0
 public void activate() {
   active = true;
   microphone.flush();
   speaker.flush();
   speaker.start();
   blocker.release();
   microphone.start();
   microphone.flush();
 }
コード例 #2
0
  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 {
    }
  }
コード例 #3
0
 public void pickup() {
   pickup.release();
 }