title: Calling this from inside a nested Java ActionListener
body: <p>Suppose I have this:</p>
  
  <pre><code>class external {
      JFrame myFrame;
      ...
  
      class internal implements ActionListener {
          public void actionPerformed(ActionEvent e) {
               ...
               myFrame.setContentPane(this.createContentPane());
          }
      }
      ...
  }
  </code></pre>
  
  <p><code>createContentPane</code> returns a Container. Now, if I was doing this code outside of the <code>ActionListener</code> it would work, because I'd have access to this. But, inside it, I don't. I have access to <code>myFrame</code>, which is what is going to be updated with the contents of the method, but that isn't enough to do what I want, unless I can get a this out of it.</p>
  
  <p>I also need information from other instance variables to use <code>createContentPane()</code>, so I'm not sure I can make it <code>static</code>.</p>