title: Java Swing - makeTextPanel() method for tabbedpane
body: <p>Where is this method from? I've tried looking for it and i cant find it. The only example i've seen it used in was where JPanel is extended and it is called in the constructor. The problem is i do not want to extend JPanel so how do i go about creating an object(my question is what class) so that i can access this method? I don't know where JPanel inherited this method from.</p>
  
  <pre><code>JComponent panel1 = makeTextPanel("Panel");
  tabs.addTab("Display", panel1);
  </code></pre>
  
  <p><a href="http://docs.oracle.com/javase/tutorial/uiswing/components/tabbedpane.html" rel="nofollow">http://docs.oracle.com/javase/tutorial/uiswing/components/tabbedpane.html</a></p>