private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {

		if ("".equals(usernameTextField.getText())) {
			JOptionPane.showConfirmDialog(null, "дû", "",
					JOptionPane.YES_NO_OPTION);
			return;
		} else if ("".equals(passwordTextField.getText())) {
			JOptionPane.showConfirmDialog(null, "д", "",
					JOptionPane.YES_NO_OPTION);
			return;
		} else if ("".equals(smtpComboBox.getSelectedItem().toString())) {
			JOptionPane.showConfirmDialog(null, "дSMTP", "",
					JOptionPane.YES_NO_OPTION);
			return;
		} else if ("".equals(popComboBox.getSelectedItem().toString())) {
			JOptionPane.showConfirmDialog(null, "дPOP3", "",
					JOptionPane.YES_NO_OPTION);
			return;
		}
		user = new User();
		user.setUsername(usernameTextField.getText());
		user.setPassword(passwordTextField.getText());
		user.setSmtpServer(smtpComboBox.getSelectedItem().toString());
		user.setPopServer(popComboBox.getSelectedItem().toString());
		if (userlist.indexOf(user) == -1)
			userlist.add(user);
		File dir = new File("user/"+user.getUsername());
		if(!dir.exists()) dir.mkdirs();
		try {
			UserAction.save(userlist);
		} catch (IOException e) {
			e.printStackTrace();
		}
		this.dispose();
	}