for the first error: if TabbedPane is supposed to be a method, then it should have a return type (for example public void TabbedPane { ... })
for the second error:
app.addWindowListener(
new WindowAdapter() {
public void windowClosing( WindowEvent e )
{
System.exit( 0 );
}
}
); <-- you forgot the semicolon here
That should take care of those two immediate errors, but you may still get more syntatic errors.
In one case, you call super() twice, but you're only supposed to call it once. If you need to set the layout then use the setLayout method
On a different note, panel1 and panel2 are your different tabs. If you are going to assign texts and labels then you should assign them to one of the panels: panel1.add(theComponent);
In this way, when you click on the other tab, the correct texts and labels appear and the others disappear.
I hope this helps you a little bit.
On one last note, in order to help yourself find some of the simple syntatic errors use TABS between all { and }
Code:
{
first level indentation
{
second level indentation
{
third level indentation
}
}
}
In this way you can easily match them up against one another. However, if the lack of indentation happened because of the copy and paste then ignore that.