A Java Swing + MySQL application developed in NetBeans IDE to manage and conduct elections.
-
Admin Login
Secure login for administrators to manage election operations. -
Voter Registration
Add and maintain voter details in the database. -
Candidate Management
Register candidates contesting in the election. -
Voting Panel
-
Eligible voters can cast their votes.
-
Prevents duplicate voting.
-
-
Result Calculation
-
Automatically counts votes.
-
Displays the winning candidate.
-
-
UI: Java Swing (NetBeans)
-
Backend: Java (Core Java, JDBC)
-
Database: MySQL
-
Clone the repository
git clone https://github.com/AnkitVS/Election-Administration-System.git
-
Open in NetBeans
-
Import the project into NetBeans IDE.
-
Ensure Java JDK (8 or higher) is installed.
-
-
Create the MySQL database
-
Create a schema (e.g.,
election_db). -
Create required tables (adjust names if your schema differs):
-
admins--- admin login details -
voters--- voter information -
candidates--- candidate list -
votes--- vote records
-
-
-
Configure JDBC
-
Locate the DB connection class (e.g.,
DBConnection.java) insrc/. -
Update host, port, database, username, password.
-
-
Run the app
-
Run the main class (e.g.,
Main.javaorHomePage.java) from NetBeans. -
Use the Admin panel to add candidates/voters, then proceed with voting.
-
/src
βββ admin # Admin login & dashboard
βββ candidate # Candidate registration & management
βββ voter # Voter registration & voting
βββ result # Vote counting & result display- Developer: AnkitVS