关于java窗口关闭的疑问

看了孙鑫老师的视频:“java从入门到精通 ”,里面介绍了通过增加一个窗口监听器,实现窗口的关闭的方法。但是对其具体实现过程,我有些疑问。

Interface WindowListener

voidwindowActivated(WindowEvent e)
          Invoked when the Window is set to be the active Window.
 voidwindowClosed(WindowEvent e)
          Invoked when a window has been closed as the result of calling dispose on the window.
 voidwindowClosing(WindowEvent e)
          Invoked when the user attempts to close the window from the window's system menu.
 voidwindowDeactivated(WindowEvent e)
          Invoked when a Window is no longer the active Window.
 voidwindowDeiconified(WindowEvent e)
          Invoked when a window is changed from a minimized to a normal state.
 voidwindowIconified(WindowEvent e)
          Invoked when a window is changed from a normal to a minimized state.
 voidwindowOpened(WindowEvent e)
          Invoked the first time a window is made visible.

这个监听器含有许多方法。

当我们点击关闭按钮时,系统怎么知道调用哪一个方法,

我们的这个点击事件具体又是如何传递的?

希望哪位高人指点一二,不甚感激!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值