Skip to content

This Java application creates a simple digital watch using the Swing GUI library. It displays the current time in hours, minutes, and seconds, with a format of "hh:mm:ss". The watch updates every second to reflect the accurate time.

License

Notifications You must be signed in to change notification settings

dhruvabhat24/Digital-watch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Digital-watch

This Java application creates a simple digital watch using the Swing GUI library. It displays the current time in hours, minutes, and seconds, with a format of "hh:mm:ss". The watch updates every second to reflect the accurate time. The project utilizes threads for real-time updating and leverages Java's built-in Calendar and SimpleDateFormat classes for time manipulation and formatting.

Features:

  • Real-time digital watch display.
  • Updates every second to show the accurate time.
  • Utilizes Swing for GUI components.
  • Threads are employed to ensure smooth real-time updates.
  • Time is displayed in a user-friendly "hh:mm:ss" format.

How to Run:

  1. Ensure you have Java installed on your system.
  2. Clone the repository to your local machine.
  3. Compile and run the DigitalWatch.java file.
  4. The digital watch GUI will open, displaying the current time.

Note: This project is a simple demonstration of creating a digital watch using Java Swing and threading. You can use it as a starting point to build more complex applications or enhance the user interface and functionality of the digital watch. Feel free to customize and extend the code as needed for your own projects.

2023-08-11.14-05-26.mp4

About

This Java application creates a simple digital watch using the Swing GUI library. It displays the current time in hours, minutes, and seconds, with a format of "hh:mm:ss". The watch updates every second to reflect the accurate time.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages