与显示相关的Applet方法有【 】(),repaint()和update()。

admin2009-02-15  31

问题 与显示相关的Applet方法有【  】(),repaint()和update()。

选项

答案paint

解析 本题考查Applet的关键方法。与显示有关的方法有paint()方法、update()方法和repaint()方法。paint()方法具体执行Applet的绘制:update()方法用于更新Applet的显示;repaint()方法用于Applet的重新显示,它调用update()方法实现对Applet的更新,Applet程序可以在需要显示更新时调用该方法,通知系统刷新显示。
转载请注明原文地址:https://kaotiyun.com/show/dxnp777K
0

相关试题推荐
最新回复(0)