groovy close a JFrame window the same way as when the user clicks on the X close window button
By Maxine Greenfelder at Feb 23 2022