/** * 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"); }
/** * 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()); } }