[填空题] 与显示相关的Applet方法有______()、repaint()和update()。
参考答案:
paint问题解析:
Applet是Component类的子类,继承了Component类的构件绘制、显示的方法,具有一般AWT构件的图形绘制功能。它包含的方法有:paint()方法,具体执行Applet的绘制;update()方法,用于更新Applet的显示;repaint()方法,主要用于Applet的重新显示,它调用update()方法实现对Applet的更新。
[填空题] 与显示相关的Applet方法有______()、repaint()和update()。
参考答案:
paint问题解析:
Applet是Component类的子类,继承了Component类的构件绘制、显示的方法,具有一般AWT构件的图形绘制功能。它包含的方法有:paint()方法,具体执行Applet的绘制;update()方法,用于更新Applet的显示;repaint()方法,主要用于Applet的重新显示,它调用update()方法实现对Applet的更新。