单项选择题
在JAVA中,假设我们有一个实现ActionListener接口的类,以下方法,()能够为一个Button类注册这个类。
A.addListener()
B.addActionListener()
C.addButtonListener()
D.setListener()
点击查看答案
相关考题
-
单项选择题
JAVA中,欲返回按钮的标签,其方法是()。
A.getActionCommand()
B.setLabel(stringstr)
C.button()
D.getLabel() -
多项选择题
JAVA中,对于drawImage(image,x,y,width,height,this)方法解释正确的是()。
A.image是要绘制的图像
B.x,y是表示图像的中心的位置
C.width是源图像的宽度
D.this是容器 -
单项选择题
在Java中,可以使线程运行的方法是()。
A.init();
B.start();
C.resume();
D.sleep();
