我又发白痴问题了
import java.awt.*;import java.awt.ActiveEvent;*;
public class DialogTest {
Frame f=new Frame("DialogTest");
Dialog D1=new Dialog(f,"Dialog1",true);
Dialog D2=new Dialog(f,"Dialog2",true);
Button B1=new Button("Button1");
Button B2=new Button("Button2");
public void init(){
D1.setBounds(40,50,100,500);
D2.setBounds(90,80,400,500);
B1.addActionListener(new ActionListener()
{
});
B2.addActionListener(new ActionListener*()
{
});
}
}