コード例 #1
0
  /**
   * for testing only.
   *
   * @param args ignored
   */
  public static void main(String[] args) {
    OutputFormatDialog dialog;

    dialog = new OutputFormatDialog(null);
    if (dialog.showDialog() == APPROVE_OPTION) System.out.println("Accepted");
    else System.out.println("Aborted");
  }
コード例 #2
0
ファイル: ResultsPanel.java プロジェクト: huangwen87/mdrill
  /**
   * displays the Dialog for the output format and sets the chosen settings, if the user approves.
   */
  public void setOutputFormatFromDialog() {
    OutputFormatDialog dialog = new OutputFormatDialog(PropertyDialog.getParentFrame(this));

    m_ResultMatrix.setShowStdDev(m_ShowStdDevs.isSelected());
    dialog.setResultMatrix(m_ResultMatrix);
    dialog.setLocationRelativeTo(this);

    if (dialog.showDialog() == OutputFormatDialog.APPROVE_OPTION) {
      m_ResultMatrix = dialog.getResultMatrix();
      m_ShowStdDevs.setSelected(m_ResultMatrix.getShowStdDev());
    }
  }