Is there one method in AWT or Swing to either tell me if there's a modal window (or multiple) up, or to return an array of them?
I looked in Window
, Dialog
, JDialog
, SwingUtilities
, etc. but couldn't find one.
(I know I can loop through Window#getWindows
and check Dialog#isModal
.)