static void cleanExitOnFrameClose_ifStillInSameFrame(final Component c) { final Window w = getWindow(c); if (w == null) ret; onWindowClosing(w, r { if (getWindow(c) == w) thread { cleanKillVM(); } }); }