public QueryEditorResultsExporter(TableModel model) {

    super(GUIUtilities.getParentFrame(), "Export Query Results", true);
    this.model = model;
    init();

    pack();
    this.setLocation(GUIUtilities.getLocationForDialog(this.getSize()));
    setVisible(true);
  }
  private ResultsProgressDialog progressDialog(int rowCount) {

    ResultsProgressDialog progressDialog;
    progressDialog = new ResultsProgressDialog(rowCount);
    setVisible(false);
    progressDialog.pack();

    progressDialog.setLocation(GUIUtilities.getLocationForDialog(progressDialog.getSize()));
    progressDialog.setVisible(true);

    return progressDialog;
  }