Coders Packet

Digital Clock in Java

By TAYON ROY

We create a digital clock in the applet by the use of the Calendar class and SimpleDateFormat class.

To make a digital clock we need to use the Thread and Graphics classes of Java & java applet.


Threads are used to change the seconds, minutes, and hours of the clock and the Graphics class is used for the design of the clock.

Digital Clock in Java we create a digital clock in the applet by the use of the Calendar class and SimpleDateFormat class digital clock in Java

Calendar class in Java it is an abstract class that sets the calendar fields, such as MONTH, HOUR, YEAR, DAY_OF_MONTH, and so on, and for manipulating the calendar fields, such as getting the date of the next month.

SimpleDateFormat class as its name implies, it's used to set the format of the date.

Project 3 output

Download Complete Code

Comments

No comments yet

Download Packet

Reviews Report

Submitted by TAYON ROY (Tayon0404)

Download packets of source code on Coders Packet