Welcome![Sign In][Sign Up]
Location:
Downloads WEB Code JSP/Java
Title: EventDemo Download
 Description: import java.awt.* import java.awt.event.* public class EventDemo{ public static void main(String[] args){ MyFrame frm=new MyFrame() frm.setVisible(true) // } } class MyFrame extends Frame{ MyFrame(){ addWindowListener(//第二步: 注册监听器 //匿名类,第一步与第三步合并: 通过匿名类省却了创建监听类,同时实现监听器中的一个方法 new WindowAdapter(){ public void windowClosing(WindowEvent e){ dispose() System.exit(0) }
 Downloaders recently: [More information of uploader hero403194754]
 To Search:
File list (Check if you may need any files):
EventDemo.java
    

CodeBus www.codebus.net