下列方法中,不属于WindowListener接口的是(  )。

admin2010-12-17  16

问题 下列方法中,不属于WindowListener接口的是(  )。

选项 A、windowOpened()
B、windowClosed()
C、windowActivated()
D、mouseDragged()

答案D

解析 窗口事件接口WindowListener有几个关键方法:
public void windowClosing (WindowEvent e)是把退出窗口的语句写在本方法中。
public void windowOpened (WindowEvent e)是窗口打开时调用。
public void windowClosed (WindowEvent e)是窗口关闭时调用。
public void windowlconified (WindowEvent e)是窗口图标化时调用。
public void windowDeiconified (WindowEvent e)是窗口非图标化时调用。
public void windowActived (WindowEvent e)是窗口激活时调用。
public void windowDeactived (WindowEvent e)是窗口非激活时调用。
mouseDragged ()不属于WindowListener接口,它属于MouseMotionListener接口,用于处理鼠标拖动事件。
转载请注明原文地址:https://kaotiyun.com/show/Qp9p777K
0

最新回复(0)