 <p>If the thread that runs <code>SwingUtilities.invokeLater</code> is already the swing event thread and you run in this while loop, yup, your application will hang.</p> <p>Get rid of the while loop. </p>