下列WindowListener接口方法中当窗口被激活时调用的方法是( )。

admin2009-03-15  60

问题 下列WindowListener接口方法中当窗口被激活时调用的方法是(    )。

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

答案1

解析 本题考查关于窗口监听器接口中基本方法的知识。选项A正确,window Activated(WindowEvent)方法在窗口激活时被调用到;选项B错误,windowClosed (WindowEvent)方法在窗口已经被关闭时调用;选项C错误,windowOpened(Win dowEvent)方法在窗口已经打开时被调用到;选项D错误,windowDeactivated(Win dowEvent)方法与窗口不再激活时被调用到。故本题答案是A。
转载请注明原文地址:https://kaotiyun.com/show/Bwnp777K
0

最新回复(0)