问题
单项选择题
向Applet中画图、画图像、显示字符串,都要用的方法是( )。
A.paint()
B.init()
C.start()
D.destroy()
答案
参考答案:A
解析: Applet是工作在图形方式下的,向Applet中画图、画图像、显示字符串,都要用paint()方法。每当Applet初次显示或更新时,浏览器都将调用pablt()方法。
向Applet中画图、画图像、显示字符串,都要用的方法是( )。
A.paint()
B.init()
C.start()
D.destroy()
参考答案:A
解析: Applet是工作在图形方式下的,向Applet中画图、画图像、显示字符串,都要用paint()方法。每当Applet初次显示或更新时,浏览器都将调用pablt()方法。