title: Mouse Event Handling To Create new Populated JFrames
body: <p>I am seeing some behavior I really do not understand. In the first bit of code, when run() is called, the JFrames pop up, and the JPanels populate. In the second bit of code, the JFrames pop up but the JFrames do not populate and the windows seem irresponsive.</p>
  
  <pre><code>final Class g = TowerView.class
  final ArrayList&lt;Class&gt; s = (ArrayList&lt;Class&gt;) sorters.clone();
  final Quantifiable [] d = InventoryItem.getRandomArray(SIZE); 
  run (s, g, d);
  </code></pre>
  
  <p>This does NOT work:</p>
  
  <pre><code>final Class g = TowerView.class
  final ArrayList&lt;Class&gt; s = (ArrayList&lt;Class&gt;) sorters.clone();
  final Quantifiable [] d = InventoryItem.getRandomArray(SIZE); 
  runButton.addMouseListener(new MouseAdapter() {
      @SuppressWarnings("unchecked")
      public void mouseClicked(MouseEvent event) {
          run(s, g, d);  
      }
  });
  </code></pre>