在事件处理函数中使用哪个函数得到触发事件的对象本身:

在事件处理函数中使用哪个函数得到触发事件的对象本身:

A.

getActionCommand()

B.

getSource()

C.

getAction()

D.

getCommand()

正确答案是B