title: One JFrame opening another
body: <p>I have a JFrame and JPanel full of <em>Jsomethings</em> with an actionlistener. When the user clicks an object I want to open another JFrame. Here is what I did:</p>
  
  <pre><code>public void actionPerformed(ActionEvent e) {
      Object source = e.getSource();
  
      if (source == rejectionbutton){
          RejectApp ra = new RejectApp();
          ra.main(null);
  
      }
  
  }
  </code></pre>
  
  <p>(RejectApp calls a new JFrame.) So another JFrame opens on the screen with more options. It works OK (so far), but I want to know is this standard? I mean calling the main method like this?
  Another question is, without using a cardlayout (which I don't want to use), is the best way to handle multiple panels, by doing this sort of thing?</p>