1. Added logging of dropped input events
2. Wrapping JOptionPane with JCOptionPane class
3. Minor change to XMLTools.java