[Menu]>[Java Programming]>[Production samples by JDK1.0]


Sound clock Applet





This applet reconstructs "Analog/Digital clock Applet"
that I am introducing in the different page as the sound appears.

The point of this applet is to send the sound by using the AudioClip package.
The file that is able to use as the sound resource is only Sun audio form
( 8KHzA8bit or 16bitAMu-law : extension is "au" )
with the restriction of JAVA specification.
( It may be only JDK1.0 restriction ? )

The waiting time in run method is being made 100 milli seconds
to raise the display accuracy of the clock.
Therefore, As the plural time sound does not appear in 0 second
the determination logic is being inserted.


There is the following function in addition to "Analog/Digital clock Applet".
The file of the sound resource is possible designated.
In the case that there is not the designation of the background image,
the color of the background is possible designated.

The following thing is fixation.
If the source program is changed, it is able to change.
The dot for each one minute is being displayed to the dial plate.
The timing that sends the sound is as each 0 second.

The size of SoundClock.class becames 8.07KB.

Designated method in HTML

Source program list

The part of the red character of the source program list
is the part that added to "Analog/Digital clock Applet".



The source program list can utilize by copying to notepad etc.

Copy method