@Override
        public void actionPerformed(ActionEvent e) {
            NumberOfSimulationsInputValidator validator = 
                    new NumberOfSimulationsInputValidator();
            
            Integer numberOfSims = parseInput(validator);
            if (numberOfSims == null) {
                validator.createErrorWindow(dialog);
                return;
            }
            
            int numberOfThreads = numberOfThreadsList.getSelectedIndex() + 1;
            int numberOfDigits = numberOfDigitsList.getSelectedIndex() + 2;
            boolean showMinorErrors = showMinorErrorMessages.isSelected();

            settings.setNumberOfThreads(numberOfThreads);
            settings.setNumberOfDigits(numberOfDigits);
            settings.setShowMinorErrorDialogs(showMinorErrors);
            settings.setDefaultNumberOfSimulations(numberOfSims);

            dialog.dispose();
            gui.writeResultsToScreen();
        }