[填空题] 与显示相关的Applet方法有______()、repaint()和update()。
2021-07-14
[填空题] 与显示相关的Applet方法有______()、repaint()和update()。
正确答案:paint
参考解析:Applet是Component类的子类,继承了Component类的构件绘制、显示的方法,具有一般AWT构件的图形绘制功能。它包含的方法有:paint()方法,具体执行Applet的绘制;update()方法,用于更新Applet的显示;repaint()方法,主要用于Applet的重新显示,它调用update()方法实现对Applet的更新。
词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。
