Question: Design a Swing - based Java application that can be used as an Online Voting System. The application will consist of three parties namely Generation

Design a Swing-based Java application that can be used as an Online Voting System. The application will consist of three parties namely Generation Z, Millennials and Generation Alpha. All the three parties are put against separate individual jRadioButtons. The vote counts of the 3 parties are store in variables g1, g2 and g3 respectively. The user needs to type in his/her name, his/her phone number, his/her ID number, select the jRadioButton against the party of his/her choice and press the Submit Your Vote jButton once done.
A user must select one party every time he/she casts a vote. If no party is chosen, then a dialog pop-up window appears to show Select a Party. The dialog boxes must be created using JOptionPane.
Note .You need to make sure that no single voter can cast votes to multiple parties
After voting has been completed, the Check Results jButton opens another JOptionPane to show the number of votes the parties have received and the party having the maximum number of votes. - Programming - Language JAVA.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!