code: public void add(int index, XEvent event) {
  		try {
  			events.insert(event, index);
  		} catch (IOException e) {
  			e.printStackTrace();
  		}
  	}
docs: /*
  (non-Javadoc)
  
  @see java.util.List#add(int, java.lang.Object)