A Java-based voting management system with MySQL backend supporting election administration, political party operations, and voter registration.Run in cmd.
- Vote_system.java: Main application entry point
- func.java: Database utilities and common functions
- Admin.java: Administrative functionality
- Admin_Panel.java: Admin user interface
- Party_Panel.java: Political party management
- User_Panel.java: Voter registration and voting interface
All class members use appropriate access modifiers with database connection logic encapsulated in the func base class.
Adminextendsfuncfor database capabilitiesAdmin_PanelextendsAdminfor hierarchical functionalityParty_PanelandUser_Panelextendfuncfor shared operations
Method overriding implemented across panel classes for specialized functionality with consistent interface patterns.
Database operations abstracted through base class with complex processes simplified via intuitive menus.
- Electoral region management (add/remove)
- Election state control (start/stop)
- Real-time result monitoring (region-wise and overall)
- Voting percentage analytics by region
- Complete system reset capability
- Candidate registration and management
- Region-based candidate allocation
- Age validation for candidates (25+ years requirement)
- Voter registration with Aadhaar validation
- Age verification (18+ years requirement)
- Region-based voting system
- Duplicate voting prevention
MySQL database with following tables:
region: Electoral region managementparty: Political party information and seat countsparty_represent: Party representative credentialsparty_candidates: Candidate information and vote countsuser: Voter information and voting status
- Start MySQL server
- Initialize database with provided schema
- Set root password to
hello@123
# compilation
javac -cp ".;mysql-connector-j-9.4.0.jar" Vote_system.java
# execution
java -cp ".;mysql-connector-j-9.4.0.jar" Vote_system