title: Overload JFrame setTitle(String) to setTitle(int)
body: <p>My lesson is to change the setTitle method of JFrame, so it allows integer as a parameter. How to do that? I have to overload that method, right? Anything I tried in the setTitle method ends in a stack overflow.</p>
  
  <pre><code>import javax.swing.*;
  
  public class MyFrame extends JFrame
  {       
      MyFrame()
      {
          super();
          setSize(400, 400); // Standard initial size
          setVisible(true);
          setDefaultCloseOperation(MyFrame.EXIT_ON_CLOSE);
      }
  
      MyFrame(int size)
      {
          this();
          setSize(size, size); 
      }
  
      public void setTitle(int title)
      {           
  
  
      }
  
  }
  
  
  public class MainClass 
  {
      public static void main(String[] args) 
      {   
          MyFrame frame = new MyFrame();
          frame.setTitle(1000);
      }
  }
  </code></pre>