private MutableTreeNode creaPatro(String patro) {
        String nom = patro.substring(0, patro.indexOf(":"));
        patro = patro.substring(patro.indexOf(":") + 1);
        DefaultMutableTreeNode nodo = new DefaultMutableTreeNode(nom);
        StringTokenizer st = new StringTokenizer(patro, ":");
        for (int i = 0; i < 6; i++) {
            String node;
            switch (i) {
                case 0:
                    node = "Trobat en " + st.nextToken() + " sequencies";
                    break;
                case 1:
                    node = "Trobat " + st.nextToken() + " vegades";
                    break;
                case 2:
                    node = "Nombre d'aparicions minima -> " + st.nextToken();
                    break;
                case 3:
                    node = "Nombre d'aparicions mitj -> " + st.nextToken();
                    break;
                case 4:
                    node = "Nombre d'aparicions maxima -> " + st.nextToken();
                    break;
                case 5:
                    node = "Error mitj del patro -> " + st.nextToken();
                    break;
                default:
                    node = "";
            }
            nodo.add(new DefaultMutableTreeNode(node));
        }
        return nodo;
    }