单项选择题

WindowListener 中可以实现窗口关闭功能的方法是______。

A.public void windowOpened(WindowEvent
B.public void windowClosed(WindowEvent
C.public void windowClosing(WindowEvent
D.public void windowDeactivated(WindowEvent