import java.awt.*;
import java.awt.event.*;
import java.io.*;
import java.net.*;
public class GUIBrowser
{
private Frame f;
private Button b;
private TextField tf;
private TextArea ta;
private Dialog d;
private Button but;
private Label lab;;
GUIBrowser()
{
init();
}
public void init()
{
f = new Frame("窗体测试");
f.setBounds(300,100,600,500);
f.setLayout(new FlowLayout());
tf = new TextField(50);
b = new Button("转到");
ta = new TextArea(25,40);
f.add(tf);
f.add(b);
f.add(ta);
d = new Dialog(f,"错误提示信息",true);
d.setBounds(500,300,300,100);
d.setLayout(new FlowLayout());
lab = new Label();
but = new Button("确定");
d.add(lab);
d.add(but);
myEvent();
f.setVisible(true);
}