int row1 = Integer.parseInt(rowIndexBox1.getText());
int row2 = Integer.parseInt(rowIndexBox2.getText());
dataTable.swapRows(row1, row2);
} else if (sender == reverseRowsButton) {
// Reverse all rows
dataTable.reverseRows();
} else if (sender == sortColumnButton) {
// Sort a column
int column = Integer.parseInt(columnIndexBox.getText());
dataTable.sortColumn(column);
} else if (sender == makeSortableButton) {