Is there a way from within a Java application to list all of the currently open/active (I’m not sure the terminology here) JFrames that are visible on screen? Thanks for your help.
Is there a way from within a Java application to list all of the
Share
Frame.getFrames()returns an array of all frames.Alternately as mentioned by @mKorbel,
Window.getWindows()will return all windows – sinceFrame(&JFrame) extendWindowthat will provide all frames, and then some. It will be necessary to iterate them to discover which ones are currently visible.