A secure, file-based desktop voting system built with Java Swing, featuring user authentication, admin control, and vote tracking β ideal for academic projects and prototype demonstrations.
- π Secure Login (SHAβ256 hashing)
- π³οΈ OneβVote Guarantee (no double voting)
- π¨ Polished UI with candidate images, names & symbols
- π Realβtime Vote Tally Display
- π Login with default credentials
- π View counts: voters, candidates, votes
- β Add / ποΈ Delete voters & candidates
- π€ Export data (CSV)
- π Intuitive sidebar + tab layout
Stored in .txt
files for portability:
candidates.txt
β names, votes, symbolsvoters.txt
β usernames + hashed passwordsvoted.txt
β recorded voters
VotingSystem/
βββ src/votingapp/
β βββ AdminPanel.java
β βββ VotingPanel.java
β βββ LoginFrame.java
β βββ VotingSystemApp.java
β βββ DataStore.java
β βββ SecurityUtils.java
βββ candidates.txt
βββ voters.txt
βββ voted.txt
βββ src/images/
βββ icon.png
βββ vote.png
βββ dashboard.png
βββ candidates.png
βββ voters.png
βββ results.png
βββ \[candidate-symbols].png
Username: admin
Password: admin123
β οΈ Please update before real-world use.
cd src
javac votingapp/*.java
java votingapp.VotingSystemApp
- Import as Java project
- Mark
src
as source root - Run
VotingSystemApp.java
Filename | Contents |
---|---|
candidates.csv |
Candidate name, votes, symbol |
voters.csv |
Username, hashed password |
votedusers.csv |
List of users who voted |
Compatible with Excel & Sheets.
candidates.txt
Abrar,0,brain
John,0,star
voters.txt
alice,ef92b778ba...
bob,5e88489da4...
voted.txt
alice
- Java SE 17+
- Swing (GUI)
- File I/O
- SHAβ256 hashing
- PrintWriter (CSV export)
(Add images of login, voting, and admin panels for visual impact.)
- Place symbol images in
/src/images/
, e.g.brain.png
,star.png
- Fully offline and portable
- Future-ready: can add DB, charts, PDF export
- Academic semester projects
- Demo prototypes for offline voting
- Java GUI programming learning tool
This is for educational/demo purposes. Modify and share with proper credit.
Built professionally, coded confidently. βπ»