单项选择题
假如我们想要对象eh来处理TextArea对象t的TextEvent事件,那么我们应如何把eh添加为t的事件处理程序?()
A. t.addTextListener (eh)
B. eh.addTextListener (t)
C. addTextListener (eh,t)
D. addTextListener (t, eh)
点击查看答案&解析
相关考题
-
多项选择题
下列叙述正确的是哪项?()
A.TextField能产生ActionEvent事件
B.TextArea能产乍ActionEvent事件
C.Button能产牛ActionEvent事件
D.Menultem能产生ActionEvent事件 -
单项选择题
下列哪个组件会产生Action事件?()
A.Buttons
B.Labels
C.Check Boxes
D.Windows -
多项选择题
下列叙述正确的是哪项?()
A.MouseListener接口定义了处理鼠标点击事件的方法
B.MouseMotionListener接口定义了处理鼠标点击事件的方法
C.MouseClickListener接口定义了处理鼠标点击事什的方法
D.ActionListener接口定义了处理按钮点击事件的方法
