code: public static void shuffleSelectedLeftRowsToRightTableModel(final JTable table,
  		final GenericShuffleTableModel<?> shuffleTableModel) throws NoRowsSelectedException
  	{
  		final int[] selectedRows = table.getSelectedRows();
  		if (selectedRows.length != 0)
  		{
  			shuffleTableModel.shuffleSelectedLeftRowsToRightTableModel(selectedRows);
  		}
  		else
  		{
  			throw new NoRowsSelectedException("No rows selected.");
  		}
  	}
docs: Shuffle selected left rows to right table model.
  
  @param table
  the table
  @param shuffleTableModel
  the shuffle table model
  
  @throws NoRowsSelectedException
  if no rows selected.