private void onOK() {
        try {
            Config.getInstance().setRpcURL(serverTextField.getText(), Integer.parseInt(portTextField.getText()));
            Config.getInstance().setRpcUser(userTextField.getText());
            Config.getInstance().setRpcPass(new String(passwordTextField.getPassword()));
            Config.getInstance().setUpdateInterval(Long.parseLong(updateIntervalSpinner.getValue().toString()));
            Config.getInstance().pushPreferences();

            EventBusFactory.getDefault().fire(new ConfigUpdatedEvent());
            // Arietta.onConfigUpdated();

            dispose();
        } catch (InvalidSettingException e) {
            Arietta.handleException(e);
        }
    }