单选题 下列哪一种方法用来获取产生一个事件的组件?
   A.actionPerformed()    B.getSource()
   C.super() D.getContentPane()
【正确答案】 A
【答案解析】