itgle.com
更多“下列方法中,不属于WindowListener接口的是A.windowOpened()B.window Closed()C.window Activated ”相关问题
  • 第1题:

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

    A.windowOpened()

    B.windowClosed()

    C.windowAetivated()

    D.mouseDragged()


    正确答案:D
    解析:窗口事件接口windowListener的方法有:public void windowClosing (WindowEvent e)是把退出窗口的语句写在本方法中;public void windowOpened (WindowEvent e)是窗口打开时调用;public void windowClosed (WindowEvent e)是窗口关闭时调用;public void windowIconified (WindowEvent e)是窗口图标化时调用;public void windowDeiconified (WindowEvent e)是窗口非图标化时调用;public void windowActived (WindowEvent e)是窗口激活时调用;public void windowDeactived (WindowEvent e)是窗口非激活时调用。因此,D选项不是windowListener接口的方法。

  • 第2题:

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

    A.windowClosing

    B.windowClosed

    C.windowMinimized

    D.windowOpened


    正确答案:C
    C。【解析】接口WindowListener包括以下方法:windowActivated、windowDeactivated、windowClosing、windowClosed、windowlconified、windowDeiconified、windowOpened方法。所以选C。

  • 第3题:

    44、(事件处理)在下列方法中,不属于WindowListener接口的是_______。

    A.windowOpened()

    B.windowClosed()

    C.windowActivated()

    D.mouseDragged()


    C

  • 第4题:

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

    A.window( )pened( )

    B.windowClosed( )

    C.windowActivated( )

    D.mouseDragged( )


    正确答案:D
    WindowListener接口包含的方法是:①WindowActivated(WindowEvent);②Window()pened(WindowEvent);③WindowClosed(WindowEvent);④Win—dowCtosing(WindowEvent);⑤WindowDeactivated(Win—dowEvent);⑥WindowDeiconified(WindowEvent);⑦Win—dowIconified(WindowEvent)。所以D选项错误。

  • 第5题:

    (事件处理)在下列方法中,不属于WindowListener接口的是_______。

    A.windowOpened()

    B.windowClosed()

    C.windowActivated()

    D.mouseDragged()


    FrameAdapter