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


Real time clock Applet






This applet displays the clock of the computer.
Although I think that this applet does not utilize, I made for the practice.

Because it is making the cycle of refreshment 1 second, there is the errors of 1 or less second.
The second display sometimes jumps.
It is like 01, 02, 03, 04, 06, 07....
Even with, I think that there is no problem because the clock of PC is not so exact.
If making the waiting time at the run method to small, it becomes correcter
but because the load of the CPU increases, it makes the 1 second.

The function is as follows.

The font of the letter is produced designated.
The color of the letter is possible designated.
The size of the letter can be designated.
The color of the background can be designated.
The position where displays the letter( Left position ) can be designated.
The vertical position where displays the letter calculates be automatic
and arrange to central.

The following thing is fixation.
If the source program is changed, it is able to change.
Thickness designation of the letter be fixation to BOLD

The size of RealClock.class becames 3.43KB.

Designated method in HTML

Source program list




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

Copy method