The close button in the edit window now uses an action instead of an actionlistener