private void btSalvarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btSalvarActionPerformed
        // TODO add your handling code here:
        Usuario u = new Usuario();
        u.setLogin(txLogin.getText());
        u.setSenha(txSenha.getText());
        u.setTelefone(txTelefone.getText());
        u.setCpf(txCpf.getText());

        if (rbFeminino.isSelected()) {
            u.setSexo("Feminino");
        } else if (rbMasculino.isSelected()) {
            u.setSexo("Masculino");
        }

        try {
            String data = txData.getText();
            u.setData(new SimpleDateFormat("dd/MM/yyy").parse(data));

        } catch (Exception e) {
            JOptionPane.showMessageDialog(null, "Erro ao converter a data");
        }

        UsuarioController uc = new UsuarioController();
        int id = uc.salvar(u);

        if (id > 0) {
            modelo.addRow(new Object[]{
                id, u.getNome(), u.getCpf(), u.getLogin()});
            JOptionPane.showMessageDialog(null, "Salvo com sucesso!");

        }
        dispose();

    }//GEN-LAST:event_btSalvarActionPerformed