@Override
 public void dispose() {
   saveLocation(getBounds());
   super.dispose();
   Disposer.dispose(myScreen);
   WelcomeFrame.resetInstance();
 }
 public static void notifyFrameClosed(JFrame frame) {
   saveLocation(frame.getBounds());
 }
 private static void setWindowTitle(Window window, String title) {
   if (window instanceof JDialog) {
     ((JDialog) window).setTitle(title);
   } else if (window instanceof JFrame) ((JFrame) window).setTitle(title);
 }