import java.applet.*; import java.awt.*; import java.awt.event.*; class sampledialog extends Dialog implements ActionListener { sampledialog(Frame parent,String title) { super(parent,title,false); setLayout(new FlowLayout()); setSize(500,500); Button b1=new Button("click!"); add(b1); b1.addActionListener(this); }
Read more..
No comments:
Post a Comment