public void moveLines(int indexRows[], int direction){

        if(indexRows.length <= 0) return;
        int firstIndex = indexRows[0];
        int lastIndex = indexRows[indexRows.length-1];

        if(direction == UP){
            if(firstIndex == 0) return;
            rows.add(lastIndex, rows.remove(firstIndex-1));
        }
        else if(direction == DOWN){
            if(lastIndex == rows.size()-2) return;
            rows.add(firstIndex, rows.remove(lastIndex+1));

        }
        //Actualise le tableau
        fireTableDataChanged();
    }