protected synchronized void rememberLastThing(UndoEvent event){
  if (undoStack.size() >= stackSize) {
    undoStack.removeElementAt(0);
  }
  if (logger.isLoggable(Level.FINE)) {
    logger.fine("remembering (" + event.getDescription() + ")");
  }
  undoStack.push(event);
}

protected synchronized void rememberLastThing ( UndoEvent event ) { if ( undoStack . size ( ) >= stackSize ) { undoStack . removeElementAt ( 0 ) ; } if ( logger . isLoggable ( Level . FINE ) ) { logger . fine ( "remembering (" + event . getDescription ( ) + ")" ) ; } undoStack . push ( event ) ; }
put a new undoevent on the backstack , to remember for later in case we need to back up .
