warum bekomme ich hier den fehler beim compilieren
TestClass.java:18 : call to super must be first statement in constructor
super();
^
???
TestClass.java
TestClass.java:18 : call to super must be first statement in constructor
super();
^
???
TestClass.java
Code:
import javax.swing.JFrame;
import javax.swing.JTree;
public class TestClass extends JFrame
{
public static void main(String[] args)
{
new TestClass();
}
public void TestClass()
{
super();
JTree tree = new JTree();
add( tree );
setSize(275, 300);
setVisible( true );
}
}