listenerAndAdapter
2014-12-26 18:28:27 2 举报
Java中事件处理之 Listener与Adapter关系
作者其他创作
大纲/内容
接口
Terminator_A
public void windowClosing(WindowEvent e){ if(user agrees) System.exit(0);}public void windowOpened(WindowEvent e){}...
适配器
WindowListener
windowOpened(WindowEvent e):voidwindowClosing(WindowEvent e):voidwindowActivated(WindowEvent e):void...
implements
WindowAdapter
public void windowOpened(WindowEvent e){}public void windowClosing(WindowEvent e){}...
Terminator_B
public void windowClosing(WindowEvent e){ if(user agrees) System.exit(0);}
extends
0 条评论
下一页
为你推荐
查看更多
抱歉,暂无相关内容