public MechSearchFilter showDialog(){
  MechSearchFilter currFilter=mechFilter;
  mechFilter=new MechSearchFilter(currFilter);
  txtEqExp.setText(mechFilter.getEquipmentExpression());
  if ((filterToks == null) || (filterToks.size() == 0) || (filterToks.lastElement() instanceof OperationFT)) {
    disableOperationButtons();
    enableSelectionButtons();
  }
 else {
    enableOperationButtons();
    disableSelectionButtons();
  }
  setVisible(true);
  if (isCanceled) {
    mechFilter=currFilter;
  }
 else {
    updateMechSearchFilter();
  }
  return mechFilter;
}

public MechSearchFilter showDialog ( ) { MechSearchFilter currFilter = mechFilter ; mechFilter = new MechSearchFilter ( currFilter ) ; txtEqExp . setText ( mechFilter . getEquipmentExpression ( ) ) ; if ( ( filterToks == null ) || ( filterToks . size ( ) == 0 ) || ( filterToks . lastElement ( ) instanceof OperationFT ) ) { disableOperationButtons ( ) ; enableSelectionButtons ( ) ; } else { enableOperationButtons ( ) ; disableSelectionButtons ( ) ; } setVisible ( true ) ; if ( isCanceled ) { mechFilter = currFilter ; } else { updateMechSearchFilter ( ) ; } return mechFilter ; }
show the dialog . setvisible ( true ) blocks until setvisible ( false ) .
