/**
  * Checks the locked rows. If all rows except the last one are locked, also lock the last row
  *
  * @return if all rows are locked
  */
 private boolean checkLockedRows() {
   int lockedNo = 0;
   for (int i = 0; i < locked.length; i++) {
     if (locked[i]) {
       lockedNo++;
     }
   }
   if (lockedNo == locked.length - 1 && !locked[locked.length - 1]) {
     locked[locked.length - 1] = true;
     lockedNo++;
     routeTableModel.fireTableRowsUpdated(locked.length - 1, locked.length - 1);
   }
   return lockedNo == locked.length;
 }
 @Override
 public void fireTableRowsUpdated(int firstRow, int lastRow) {
   super.fireTableRowsUpdated(firstRow, lastRow);
 }