private void onOK()
    {
        NamesManager.getInstance().setNames(this.leftNameField.getText(), this.rightNameField.getText());
        RoundManager.getInstance().setMaxRound(Integer.parseInt(roundsCountField.getText()));
        selectDataSource();

        savePreferences();

        dispose();
    }