public void doAddUser(){
        if( (newName.getText().length() > 0 && newSurname.getText().length() > 0 && newFisCod.getText().length() > 0 &&
           newUserName.getText().length() > 0 && newPwd.getText().length() > 0 && confNewPwd.getText().length() > 0) && (confNewPwd.getText().equals(newPwd.getText()) ) ){ //TODO eventualmente piccolo avviso nel caso le password divergono
            User temp = SystemController.currentUser.createUser();
            temp.setName(newName.getText());
            temp.setSurname(newSurname.getText());
            temp.setFiscalCode(newFisCod.getText());
            temp.setUsername(newUserName.getText());
            temp.setPassword(GuiController.SHA1(newPwd.getText().getBytes()));
            temp.setAdmin(false);
            temp.setSubstituteOf("0");
            temp.sendData();
            sLab.setVisible(true);
                        try {
                Thread.sleep(500);
                        } catch (InterruptedException ex) {
                        Logger.getLogger(addUser.class.getName()).log(Level.SEVERE, null, ex);
                        }
            sLab.setVisible(false);
            //TODO repaint dell lista utenti e metti un indietro
            GuiController.showMainPanel();
        }
    }