public void updateEnabledState(){
  boolean b=(getSimulationThread() == null);
  boolean prep=b && controller != null && controller.isPrepared();
  clearButton.setEnabled(b);
  prepareButton.setEnabled(b);
  runButton.setEnabled(prep);
  if (b)   pauseButton.setSelected(false);
  pauseButton.setEnabled(!b);
  stepButton.setEnabled(prep);
  cancelButton.setEnabled(!b);
  for (  JComboBox<Object> combo : selectors.combos)   combo.setEnabled(b);
}

public void updateEnabledState ( ) { boolean b = ( getSimulationThread ( ) == null ) ; boolean prep = b && controller != null && controller . isPrepared ( ) ; clearButton . setEnabled ( b ) ; prepareButton . setEnabled ( b ) ; runButton . setEnabled ( prep ) ; if ( b ) pauseButton . setSelected ( false ) ; pauseButton . setEnabled ( ! b ) ; stepButton . setEnabled ( prep ) ; cancelButton . setEnabled ( ! b ) ; for ( JComboBox < Object > combo : selectors . combos ) combo . setEnabled ( b ) ; }
enables / disables combos and buttons .
