public void enableSpeech(boolean toEnable){
  if (inputContainer.getComponentCount() == 3 && toEnable && system.getModule(AudioModule.class) != null) {
    SpeechInputPanel panel=new SpeechInputPanel(system.getModule(AudioModule.class));
    inputContainer.add(panel,BorderLayout.SOUTH);
    repaint();
  }
 else   if (inputContainer.getComponentCount() == 4 && !toEnable) {
    inputContainer.remove(3);
    repaint();
  }
}

public void enableSpeech ( boolean toEnable ) { if ( inputContainer . getComponentCount ( ) == 3 && toEnable && system . getModule ( AudioModule . class ) != null ) { SpeechInputPanel panel = new SpeechInputPanel ( system . getModule ( AudioModule . class ) ) ; inputContainer . add ( panel , BorderLayout . SOUTH ) ; repaint ( ) ; } else if ( inputContainer . getComponentCount ( ) == 4 && ! toEnable ) { inputContainer . remove ( 3 ) ; repaint ( ) ; } }
enables or disables the speech input panel in the tab
