title: Java Continuing code after JOptionPane
body: <p>So, I'm trying to make a popup message appear when something happens, but I want the code to continue as soon as the message appears, and not wait for the user to press the okay button.</p>
  
  <pre><code>JOptionPane.showMessageDialog(null, message, "Alert!", JOptionPane.ERROR_MESSAGE);
  System.out.println("HI!");
  </code></pre>
  
  <p>When I do this, it doesn't print HI! until I press okay. How can I fix this?</p>