private void jButton1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseClicked

        String[] temp = new String[6];
        for (int i = 0; i < 6; i++) {
            temp[i] =(String) pileCarteEnnemis.get(i);
        }
        for (int i = 0; i < 6; i++) {
            pileCarteEnnemis.remove(0);
        }
        String[] temp2 = new String[6];
        for (int i = 0; i < 6; i++) {
            temp2[ordre[i]-1]=temp[i];
        }
        this.dispose();
        ArrayList<String> temp3=new ArrayList<>();
        for(String s:temp2)
        {
            temp3.add(s);
        }
        pileCarteEnnemis.addAll(0, temp3);

    }//GEN-LAST:event_jButton1MouseClicked