// We must remove the last elements first, otherwise
// (if we remove an element with a low index), the
// higher indices will be invalid.
for (int i = indices.length - 1; i >= 0; i--) {
model.removeElementAt(indices[ i]);
}
// Having deleted some elements from the list, we must
// ensure that:
// (a) the first index inside the visible area is >= 0