title: Is there a simple way to know if a modal dialog is currently displayed?
body: <p>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? </p>
  
  <p>I looked in <code>Window</code>, <code>Dialog</code>, <code>JDialog</code>, <code>SwingUtilities</code>, etc. but couldn't find one.</p>
  
  <p>(I know I can loop through <code>Window#getWindows</code> and check <code>Dialog#isModal</code>.)</p>