private static void saveSettings(){
		SettingsModel.setUserName(nameField.getText());
		SettingsModel.setFullscreen(fullscreen.isSelected());
		Locale [] l = model.save.SettingsModel.getAllLocales();
		for(int a=0; a<l.length; a++){
			if (l[a].getDisplayLanguage(l[a]).equalsIgnoreCase(language.getSelectedItem().toString())){
				SettingsModel.setLocale(l[a]);
			}
		}
		SettingsModel.save();
	}