万能百科  > 计算机   > 

[填空题] 与显示相关的Applet方法有______(),repaint()和update()。

2021-07-14   

[填空题] 与显示相关的Applet方法有______(),repaint()和update()。

正确答案:

paint

参考解析:

本题考查Applet的关键方法。与显示有关的方法有paint()方法、 update()方法和repaint()方法。paint()方法具体执行 Applet的绘制;update()方法用于更新Applet的显示;repaint()方法用于Applet的重新显示,它调用 update()方法实现对Applet的更新,Applet程序可以在需要显示更新时调用该方法,通知系统刷新显示。

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签