void () { if (ScreenUtil.isStandardAddRemoveNotify(getParent())) { Disposer.dispose(myDelayAlarm); Disposer.dispose(myDisposable); } else if (isShowing()) { SwingUtilities.invokeLater(() -> show()); } super.dispose(); myDisposed = true; }