buf.delete(where, where + nitems);
int length = length();  if (where >= length) throw new BadLocationException("the where argument cannot be greater" + " than the content length", where); if ((where + nitems) > length) throw new BadLocationException("where + nitems cannot be greater" + " than the content length", where + nitems);   if (where != gapStart) shiftGap(where);   gapEnd += nitems;
  public UndoableEdit remove(int where, int nitems)    throws BadLocationException    {	buf.delete(where, where + nitems);	return null;    }