There is no getWindows method in java.awt.Windows, but there is a Frame.getFrames () method.
But I know that both of them use WeakReference to manage such things.
, , Window, Frame weakThis, weakreference frame/window. , (, appcontext), weakThis. (Weakreferences gc-ing , )
EDIT: Window.getWindows 1.6.