public static void main(String[] args) throws Exception
{
new TextGui();
}
public TextGui() throws Exception
{
init() ;
}
public void init() throws Exception
{
f = new Frame("文件搜索");
f.setBounds(200,100,600,600);
f.setLayout(new FlowLayout());
f.setVisible(true);
btn = new Button("显示文件");
tf = new TextField(60);
ta = new TextArea(30,70);
f.add(btn);
f.add(tf);
f.add(ta);
myEvent();
}
public void myEvent() throws Exception
{