In Java Swing is there a way to find and close all
Keep a reference to each of the dialogs (perhaps in a collection). When needed, iterate the collection and call
As suggested by @mKorbel, you can also use:
Window windows = Window.getWindows();
You'd just need to check for the 'parent' window when iterating the array and closing things.