title: Explain what the following code does?
body: <pre><code>java.awt.EventQueue.invokeLater(new Runnable() {
      public void run() {
          new NewJFrame().setVisible(true);
      }
  });
  </code></pre>
  
  <p>Please tell me what does the above code does actually. I am looking for line by line explanation. especially the first line and tell me why do we use that and in what scenarios we have to use this.</p>