Use WindowAdapter instead of WindowListener.
Added an event handler to DisplayTreeNode.
Test with Oracle JDK 8 instead of 7 to cover more Java versions