title: Exception in setTitle method
body: <p>I am currently developing my own minesweeper. While overriding a method setTitle I have the following problem.</p>
  
  <pre><code>//InfoDisplayer is inner class of class MenuActionListener
      class InfoDisplayer extends JDialog{ 
  
  
      JLabel info;
                  BorderLayout infoBorderLayout = new BorderLayout();
  
                  public InfoDisplayer(JFrame ownerFrame){
                      super(ownerFrame,true); //Always modal is set to be true....
                      info = new JLabel();
                      setFocusable(false);                        
                      setSize(300,400);
                      setDefaultCloseOperation(DISPOSE_ON_CLOSE);
                      setLayout(infoBorderLayout);
                      add(info,BorderLayout.SOUTH);
                      setVisible(true);
                  }
  
                  void setInfo(JLabel  info){
                      this.info = info;
                  }
  
                  public void setTitle(String  title){
                         setTitle(title); 
                      }                                   
                  }
  
              if ((event.getActionCommand()).equals("HowToPlay")){
              InfoDisplayer instructionsDisplay = new InfoDisplayer(gUIManagerFrame); 
                      //gUIManagerFrame is an object of its outer class,MenuActionListener
                  instructionsDisplay.setTitle("INSTRUCTIONS");
                  instructionsDisplay.setInfo(new JLabel("&lt;html&gt;&lt;h1&gt;&lt;B&gt;INSTRUCTIONS&lt;/B&gt;&lt;/h1&gt;&lt;/html&gt;"));
  
                  }   
                  else{// if about is clicked!!
                  InfoDisplayer aboutDisplay = new InfoDisplayer(gUIManagerFrame);
                  aboutDisplay.setTitle("MineSweeper v0.1");
                  aboutDisplay.setInfo(new JLabel("&lt;html&gt;&lt;h1&gt;&lt;B&gt;MineSweeperv1.0&lt;/B&gt;&lt;/h1&gt; &lt;/html&gt;"));
  
              }
          }           
  </code></pre>
  
  <p>The setTitle and setInfo method doesn't work.In addition to that, setTitle method produces exception.</p>
  
  <blockquote>
    <p>at
    graphicalUserInterface.BoardMenuBar$MenuItemsActionListener$1InfoDisplayer.setTitle(GUIManager.java:338)
      at
    graphicalUserInterface.BoardMenuBar$MenuItemsActionListener$1InfoDisplayer.setTitle(GUIManager.java:338)
    at 
    graphicalUserInterface.BoardMenuBar$MenuItemsActionListener$1InfoDisplayer.setTitle(GUIManager.java:338)
      at
    graphicalUserInterface.BoardMenuBar$MenuItemsActionListener$1InfoDisplayer.setTitle(GUIManager.java:338)
      at
    graphicalUserInterface.BoardMenuBar$MenuItemsActionListener$1InfoDisplayer.setTitle(GUIManager.java:338)
      at
    graphicalUserInterface.BoardMenuBar$MenuItemsActionListener$1InfoDisplayer.setTitle(GUIManager.java:338)</p>
  </blockquote>
  
  <p>I am also eager to know the reason for continues exception Generation.</p>
  
  <p><strong>EDIT:</strong> Sorry, I doesnt looked at the recursive call. Its my mistake. Now I have corrected It.</p>