public void valueChanged(ListSelectionEvent e)
        {
                switch( searJ.getMinSelectionIndex() )
                {
                case 0:
                        inpGtria.setText("6\n") ;
                        inpGtria.append("1 2 -3 -1 5 6\n") ;
                        inpGtria.append("4 -5 3 -4 -2 -6") ;
                        outG.setText("") ;
                        break;
                case 1:
                        /* Yutsis Figure 18.1 index map.
                        * j1=1, j2=2, j3=3
                        * k1=4, k2=5, k3=6
                        * l1=7, l2=8, l3=9
                        */
                        inpGtria.setText("9\n") ;
                        inpGtria.append("1 3 2 4 6 5 7 9 8 # (j1 j3 j2) (k1 k3 k2) (l1 l3 l2)\n") ;
                        inpGtria.append("-2 -8 -5 -6 -3 -9 -7 -4 -1 # (j2 l2 k2) (k3 j3 l3) (l1 k1 j1)") ;
                        outG.setText("") ;
                        break;
                case 2:
                        /* Yutsis Figure 19.1 and 19.2, index map, including the sign reveral of the l.
                        * Assume input order j1..j4, l1..l4, k1..k4.
                        * j1=1, j2=2, j3=3, j4=4
                        * l1=5, l2=6, l3=7, l4=8
                        * k1=9, k2=10, k3=11, k4=12
                        */
                        inpGtria.setText("12\n") ;
                        inpGtria.append("1 12 -8 -1 5 -2 2 6 -3 3 7 -4 # (j1 k4 l4) (j1 l1 j2) (j2 l2 j3) (j3 l3 j4)\n") ;
                        inpGtria.append("4 8 -9 9 -5 -10 10 -6 -11 11 -7 -12 # (j4 l4 k1) (k1 l1 k2) (k2 l2 k3) (k3 l3 k4)") ;
                        outG.setText("") ;
                        break;
                case 3:
                        inpGtria.setText("12\n") ;
                        inpGtria.append("1 5 9 -9 -2 -7 2 11 8 -8 -12 -4 # (j1 l1 k1) (k1 j2 l3 ) (j2 k3 l4) (l4 k4 j4)\n") ;
                        inpGtria.append("4 7 10 -10 -3 -5 3 6 12 -6 -11 -1 # (j4 l3 k2) (k2 j3 l1) (j3 l2 k4) (l2 k3 j1)") ;
                        outG.setText("") ;
                        break;
                case 4:
                        /* Yutsis Figure 20.2 to 20.3, index map.
                        * j1=1, j2=2, j3=3, j4=4, j5=5
                        * l1=6, l2=7, l3=8, l4=9, l5=10
                        * k1=11, k2=12, k3=13, k4=14, k5=15
                        */
                        inpGtria.setText("15\n") ;
                        inpGtria.append("1 -6 2 -2 -7 3 -3 -8 4 -4 -9 5 -5 -10 11 # (j1 l1 j2)(j2 l2 j3)(j3 l3 j4)(j4 l4 j5)(j5 l5 k1)\n") ;
                        inpGtria.append("-11 6 12 -12 7 13 -13 8 14 -14 9 15 -15 10 -1 # (k1 l1 k2)(k2 l2 k3)(k3 l3 k4)(k4 l4 k5)(k5 l5 j1)") ;
                        outG.setText("") ;
                        break;
                case 5:
                        inpGtria.setText("15\n") ;
                        inpGtria.append("-1 -6 2 -2 -7 3 -3 -8 4 -4 -9 5 1 -5 -10 # (j1 l1 j2)(j2 l2 j3)(j3 l3 j4)(j4 l4 j5)(j1 j5 l5)\n") ;
                        inpGtria.append("11 -15 10 9 15 -14 8 14 -13 7 13 -12 6 12 -11 # (k1 k5 l5)(l4 k5 k4)(l3 k4 k3)(l2 k3 k2)(l1 k2 k1)") ;
                        outG.setText("") ;
                        break;
                case 6:
                        /* Yutsis Figure 20.4a, index map.
                        * k1=1, k1'=2, k=3, k'=4, k2=5, k2'=6
                        * p1=7, p=8, p2=9,
                        * j1=10, j1'=11 j=12 j'=13 j2=14 j2'=15
                        */
                        inpGtria.setText("15\n") ;
                        inpGtria.append("-13 -12 -8 12 14 10 -10 -1 7 -7 -11 -2 2 4 6 # (j' j p)(j j2 j1)(j1 k1 p1)(p1 j1' k1')(k1' k' k2')\n") ;
                        inpGtria.append("-4 -3 8 1 3 5 -14 -5 9 -15 -6 -9 15 11 13 # (k' k p)(k1 k k2)(j2 k2 p2)(j2' k2' p2)(j2' j1' j')") ;
                        outG.setText("") ;
                        break;
                case 7:
                        /* Yutsis Figure 20.5a, index map.
                        * j1=1, k1=2 s1=3 k1'=4 j1'=5
                        * p=6 l=7 s=8 l'=9 p'=10
                        * j2=11 k2=12 s2=13 k2'=14 j2'=15
                        */
                        inpGtria.setText("15\n") ;
                        inpGtria.append("-14 -12 -8 12 11 -10 -11 13 -7 7 -1 3 2 1 6 # (k2' k2 s)(k2 j2 p')(j2 s2 l)(l j1 s1)(k1 j1 p)\n") ;
                        inpGtria.append("-4 -2 8 10 4 5 9 -5 -3 -13 -9 -15 15 -6 14 # (k1' k1 s)(p' k1' j1')(l' j1' s1)(s2 l' j2')(j2' p k2')") ;
                        outG.setText("") ;
                        break;
                case 8:
                        /* Yutsis Figure 20.6, index map.
                        * k1=1 k1'=2 j1=3 l1=4 l1'=5
                        * k2=6 k2'=7 j2=8 l2=9 l2'=10
                        * k3=11 k3'=12 j3=13 l3=14 l3'=15
                        */
                        inpGtria.setText("15\n") ;
                        inpGtria.append("-15 1 -7 -4 -11 7 5 4 -3 -12 -5 6 12 -9 -1 # (l3' k1 k2')(l1 k3 k2')(l1' l1 j1)(k3' l1' k2)(k3' l2 k1)\n") ;
                        inpGtria.append("9 -8 10 -10 11 -2 -14 -6 2 14 -13 15 3 8 13 # (l2 j2 l2')(l2' k3 k1')(l3 k2 k1')(l3 j3 l3')(j1 j2 j3)") ;
                        outG.setText("") ;
                        break;
                }
        } /* valueChanged */