16_07.doc
来自「经典的<<C how to program>一书第三版的例程。」· DOC 代码 · 共 16 行
DOC
16 行
deitelLoop.java
** already have docs on HTML parameters
Line 35 declares and initializes a new LogoAnimator object by sending, as arguments, totalImages, animationDelay, and imageName.
Next, line 38 sets the size of the applet to slightly larger than that of the animation. The animation is added to the center of the applet in line 40. In line 42 the startAnimation method of the LogoAnimator class is called and then animation begins.
LogoAnimator.java
Beginning on line 35 is a second constructor that takes arguments for totalImages, currentImage, and imageName. It simply calls the zero argument default constructor in line 37 and then sets those variables in lines 38-40.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?