for (int index = 0; index < (endIndex - startIndex); index++) { Vector vector = (Vector) dataVector.remove(startIndex); dataVector.add(toIndex, vector);
Vector removed = new Vector(); for (int i = endIndex; i >= startIndex; i--) { removed.add(this.dataVector.remove(i)); } for (int i = 0; i <= endIndex - startIndex; i++) { dataVector.insertElementAt(removed.get(i), toIndex);
	public void moveRow(int startIndex, int endIndex, int toIndex) {    for (int index = 0; index < (endIndex - startIndex); index++) {      Vector vector = (Vector) dataVector.remove(startIndex);			dataVector.add(toIndex, vector);    }    fireTableDataChanged();  }