Action Listener for Cancel Compose button
Changed code using java.nio ince its in version 7

Untested