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.
JComponent panel1 = makeTextPanel("Panel");
tabs.addTab("Display", panel1);
http://docs.oracle.com/javase/tutorial/uiswing/components/tabbedpane.html