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