private void saveSettings() throws InvalidAttributeValueException {
        if ( userForm.getNickname().isEmpty() )
            throw new InvalidAttributeValueException("Přezdívka musí být vyplněna");

        else if ( userForm.getUsername().isEmpty() )
            throw new InvalidAttributeValueException("Uživatelské jméno musí být vyplněno");

        settings.setUserProperty("nickname", userForm.getNickname() );
        settings.setUserProperty("altnickname", userForm.getAltNickname() );
        settings.setUserProperty("username", userForm.getUsername() );
        settings.setUserProperty("realname", userForm.getRealname() );
        settings.setUserProperty("email", userForm.getEmail() );

        settings.setEventEnabled("log-chat", eventsForm.isLogChatChecked() );
        settings.setEventEnabled("rejoin-after-kick", eventsForm.isRejoinChecked() );
        settings.setEventEnabled("clickable-links", eventsForm.isClickableLinksChecked() );
        settings.setEventEnabled("ask-for-quit", eventsForm.isAskForQuitChecked() );

        settings.setViewEnabled("display-topic", viewForm.isDisplayTopicChecked() );
        settings.setViewEnabled("timestamp-enabled", viewForm.isTimestampEnabled() );
        settings.setViewTimestampFormat( viewForm.getTimestampFormat() );

        settings.setBlockedNicknames( blockedForm.getBlockedNicknames() );

        settings.store();
    }