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.
- 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
| Action | Button | Keyboard |
|---|---|---|
| Start / Stop | START |
Space |
| Reset | RESET |
R |
| Change theme | LIGHT |
L |
| Change precision mode | MODE |
M |
StopWatch/
├── src/
│ ├── Main.java
│ ├── Watch0.png
│ ├── Watch1.png
│ ├── Watch2.png
│ ├── Watch3.png
│ ├── Watch4.png
│ ├── stopwatch.png
│ └── *.ttf
├── .vscode/
│ └── settings.json
├── .gitignore
└── README.md
- Java JDK installed
- Visual Studio Code with Java extensions, or any Java IDE such as IntelliJ IDEA, Eclipse, or NetBeans
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.
- Generated files such as
.class,bin/, andout/are ignored by Git. - Image and font assets in
src/are required for the stopwatch interface. tempCodeRunnerFile.javais ignored because it is generated by editor tooling and is not part of the project.