code: public XEvent set(int index, XEvent event) {
  		try {
  			XEvent result = events.replace(event, index);
  			return result;
  		} catch (IOException e) {
  			e.printStackTrace();
  			return null;
  		}
  	}
docs: /*
  (non-Javadoc)
  
  @see java.util.List#set(int, java.lang.Object)