protected void moveDownSelected(){
  int selectedIndex=table.getSelectedRow();
  if (selectedIndex > -1) {
    int index=data.moveDown(indexToModel(selectedIndex));
    setRowSelected(indexToView(index));
  }
}

protected void moveDownSelected ( ) { int selectedIndex = table . getSelectedRow ( ) ; if ( selectedIndex > - 1 ) { int index = data . moveDown ( indexToModel ( selectedIndex ) ) ; setRowSelected ( indexToView ( index ) ) ; } }
moves the selected item down in the model ( and table ) . this can behave kind of odd when the table is filtered or sorted automatically , so it should not be used then .
