Example #1
0
 /** Constructor for class ClippyGUI */
 public ClippyGui() throws InterruptedException {
   super(300, 200, 350, 300);
   clippyTxt = new JTextArea("Hello " + "!");
   createPnl();
   setComVisible(false);
   isIdle = true;
   setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
   currentBehavior.setDefaultList();
   currentBehavior.updateList();
   micEnabled = true;
 }
Example #2
0
 /**
  * Sets and switch to the current behavior
  *
  * @param behav the selected behavior
  */
 public void setCurrentBehavior(MyBehavior behav) {
   currentBehavior = behav;
   exeState = true;
   setClippyTxt("Entering " + currentBehavior.getName());
   voiceMenu.setBehavior(currentBehavior);
 }