private void jButtonBuscaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonBuscaActionPerformed
        if (jTextFieldCod.getText() == null || jTextFieldCod.getText().equals("")) {
            jLabelErro.setErrorText(WORDS.getString("ERRO-CODIGO"));
        } else {
            try {
                Integer userCod = Integer.parseInt(jTextFieldCod.getText());
                Object[][] table = banco.getUsuario(userCod);
                if (table.length != 1) {
                    throw new AccountException(WORDS.getString("ERRO-USUARIO-NAO-ENCONTRADO!"));
                }
                jLabelUserName.setText(table[0][1].toString());
                table = banco.getEmprestimo(userCod);
                DefaultTableModel model = (DefaultTableModel) jTable1.getModel();
                if (table.length == 0) {
                    throw new AccountException(WORDS.getString("HISTORICO-VAZIO"));
                }
                model.setNumRows(0);
                for (Object[] table1 : table) {
                    if ((Integer) table1[3] == 0) {
                        table1[3] = WORDS.getString("ABERTO");
                    } else if ((Integer) table1[3] == 1) {
                        table1[3] = WORDS.getString("PENDENTE");
                    } else if ((Integer) table1[3] == 2) {
                        table1[3] = WORDS.getString("CONCLUIDO");
                    }
                    model.addRow(table1);
                }
                jLabelErro.setText("");
                apresentarBusca(false);
            } catch (NumberFormatException | SQLException | AccountException ex) {
                jLabelErro.setErrorText(ex.getMessage());
            }
        }
    }//GEN-LAST:event_jButtonBuscaActionPerformed