title: Extending JFrame - how does "super" keyword work?
body: <p>I've made a class that extends <code>JFrame</code>, and in my classes constructor, to set the title I can either use:</p>
  
  <pre><code>super("title");
  setTitle("title");
  </code></pre>
  
  <p>or just create a <code>JFrame</code> object i.e:</p>
  
  <pre><code>JFrame f = new JFrame("title);
  </code></pre>
  
  <p>How does the compiler differentiate from all of these to conclude the same thing? I know super is used to call overridden methods in the superclass, but how does it specifically know to call the <code>setTitle</code> method?</p>
  
  <p>My idea is that super calls the constructor of <code>JFrame</code> class, and there is only one constructor which takes a string parameter, so it's basically doing:
  <code>JFrame f = new JFrame("title);</code>, without explicitly creating the object.</p>
  
  <p>Is this true? If not, can someone explain what super is exactly doing, and why <code>setTitle</code> does not need an object reference?</p>
  
  <p>Cheers</p>