public String generaTabla(ArrayList<String[]> cat) {
        String tabla = "";
        tabla += "<table style='width:100%'>";

        for (int i = 0; i < cat.size(); i++) {
            tabla += "<tr id='padre" + cat.get(i)[0] + "'>";
            tabla += "<td id='hijo" + cat.get(i)[0] + "' onclick='voyAeditar(" + cat.get(i)[0] + ")'>";
            tabla += cat.get(i)[1];
            tabla += "</td>";
            tabla += "</tr>";
        }
        tabla += "</table>";
        return tabla;
    }