How can I find all visible frames/dialogs in program? I could subclass JFrame/JDialog classes to update the list of currently visible windows, but if there is a built-in solution for this that would be much better
Try
List<Window> visibleWindows = new ArrayList<Window>();
for(Window w: Window.getWindows()){
    if(w.isShowing()){
        visibleWindows.add(w);
    }
}
References:
getWindows()isShowing()If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With