private void openDialog() {
        WindowCreator creator = new WindowCreator(gui.getFrame());
        JDialog dialog = creator.createNewJDialog("Select parameters", 450, 250);
        dialog.setResizable(false);

        JPanel mainPanel = new JPanel();
        setBorderAndLayout(mainPanel);

        JLabel gameTypeText = new JLabel("Game type");
        mainPanel.add(gameTypeText);
        
        PokerGameType[] allGameTypesArray = PokerGameType.getAllGameTypesArray();     
        
        JComboBox gameTypeList = createGameTypeList(allGameTypesArray);
        mainPanel.add(gameTypeList);
        
        JComboBox numberOfHandsList = createNumberOfHandsList(mainPanel);

        JLabel numberOfSimulationsText = new JLabel("Number of simulations");
        mainPanel.add(numberOfSimulationsText);

        JTextField numberOfSimulations = new JTextField(
                Integer.toString(gui.getSettings().getDefaultNumberOfSimulations()));
        mainPanel.add(numberOfSimulations);

        mainPanel.add(new JLabel(""));
        JButton okButton = new JButton("OK");
        okButton.addActionListener(new InputValidation(gui, dialog, gameTypeList, numberOfHandsList, numberOfSimulations, allGameTypesArray));
                
        mainPanel.add(okButton);

        dialog.setContentPane(mainPanel);
    }