Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Stopwatch

A desktop stopwatch application built with Java Swing. The program displays a themed digital stopwatch with custom buttons, background watch images, color themes, and two precision modes.

Features

  • Start and stop the timer
  • Reset the timer when it is stopped
  • Switch between 1/100 second and 1/1000 second precision
  • Change the watch light/theme color
  • Keyboard shortcuts for the main controls
  • Custom images and digital-style fonts

Controls

Action Button Keyboard
Start / Stop START Space
Reset RESET R
Change theme LIGHT L
Change precision mode MODE M

Project Structure

StopWatch/
├── src/
│   ├── Main.java
│   ├── Watch0.png
│   ├── Watch1.png
│   ├── Watch2.png
│   ├── Watch3.png
│   ├── Watch4.png
│   ├── stopwatch.png
│   └── *.ttf
├── .vscode/
│   └── settings.json
├── .gitignore
└── README.md

Requirements

  • Java JDK installed
  • Visual Studio Code with Java extensions, or any Java IDE such as IntelliJ IDEA, Eclipse, or NetBeans

Running the Program

Open the project in your Java IDE and run src/Main.java.

If running from the command line, compile and run from a location where the image and font files can be found by the program. The current code loads assets using relative file paths.

Notes

  • Generated files such as .class, bin/, and out/ are ignored by Git.
  • Image and font assets in src/ are required for the stopwatch interface.
  • tempCodeRunnerFile.java is ignored because it is generated by editor tooling and is not part of the project.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages