public Visitor getVisitor() {
    Visitor visitor = new Visitor();
    visitor.setFirst_name(this.getTfFirstName().getText().toString().trim());
    visitor.setPatronymic(this.getTfMiddleName().getText().toString().trim());
    visitor.setSurname(this.getTfSureName().getText().toString().trim());
    if (rbtnMale.isSelected()) visitor.setSex("мужчина");
    if (rbtnFemale.isSelected()) visitor.setSex("женщина");
    visitor.setAdress(this.getTfAdress().getText().toString().trim());
    visitor.setBirthday(this.getTfBirthDay().getText().toString().trim());
    visitor.setNumber_phone(this.getTfNumberPhone().getText().toString().trim());
    visitor.setIndexCard(cbCard.getSelectedIndex() + 1);
    visitor.setCard(cbCard.getSelectedItem().toString().trim());
    visitor.setKey(0);
    visitor.setNotation(this.getNotation().getText().toString().trim());
    visitor.setDate_reg(this.getTfDateReg().getText().toString().trim());
    visitor.setBalance(this.getTfBalance().getText().toString().trim());
    visitor.setPhoto(this.fileImage);

    return visitor;
  }