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.
JFrames
Frame.getFrames() returns an array of all frames.
Frame.getFrames()
Alternately as mentioned by @mKorbel, Window.getWindows() will return all windows - since Frame (& JFrame) extend Window that will provide all frames, and then some. It will be necessary to iterate them to discover which ones are currently visible.
Window.getWindows()
Frame
JFrame
Window
2.1m questions
2.1m answers
60 comments
57.0k users