public void buscarVentas(String nombre) { ventasEncontradas = DaoApartados.findByNombre(nombre, AppInstance.boutique().getId()); ventasView.clear(); Object[] row; for (VentaApartado v : ventasEncontradas) { row = new Object[4]; row[0] = v.getId(); row[1] = v.getCliente(); row[2] = v.getDomicilio(); row[3] = v.getTelefono(); ventasView.add(row); } }