title: Calling JTree from another class
body: <p>I'm having trouble making a <code>JMenuItem</code> in one class pull up a <code>JTree</code> from another class that would act as a <code>Help</code> menu for a program I'm making. The main problem I'm having is calling the <code>JTree</code> from the one class through an <code>ActionListener</code> in the <code>JMenuItem</code>'s class.  </p>
  
  <p>Here's the code from the JMenuItem's class that I'm talking about:</p>
  
  <pre><code>/*pulls up help menu*/
  JMenuItem item1 = new JMenuItem("Help Menu");
  myMenu.add(item1);
  item1.addActionListener(new ActionListener(){
       public void actionPerformed(ActionEvent event){
       **if(item1.isEnabled()){
          sjt = new SampleJTree();
       }**
   }
  });
  </code></pre>
  
  <p>As I stated before, I'm not sure how to bring a JTree via the bold section (i.e. I don't know what to put in the if statement check).  Any direction to the solution would be much appreciated.</p>