为什么不可以识别main()
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.event.*;
public class hello extends JFrame{
xiaotiantian(String title){
super(title);
setSize(300,200);
}
void main(){
new xiaotiantian("helloworld");
}
}