private void jTNomeKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_jTNomeKeyTyped
        try {
            lanches = dao.listar("%" + jTNome.getText() + "%");
            while (tmLanche.getRowCount() > 0) {
                tmLanche.removeRow(0);
            }

            for (int i = 0; i < lanches.size(); i++) {
                tmLanche.addRow(new String[]{null, null, null, null});
                tmLanche.setValueAt(lanches.get(i).getNome(), i, 0);
                tmLanche.setValueAt(lanches.get(i).getIngredientes(), i, 1);
                tmLanche.setValueAt(format(lanches.get(i).getValor()), i, 2);
            }

        } catch (SQLException ex) {
            JOptionPane.showMessageDialog(null, "Erro: " + ex);
        }
    }//GEN-LAST:event_jTNomeKeyTyped