Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

Assignment No. 02
Semester: Fall 2010

CS506: Web Design & Development



Total Marks: 20

Due Date: 23/11/2010



Please read the following instructions carefully before submitting assignment:

It should be clear that your assignment will not get any credit if:


§         The assignment is submitted after due date.

§         The submitted assignment does not open or file is corrupt.

§         All types of plagiarism are strictly prohibited.


Note: You have to upload .java file(s). Assignment in any other format (extension) will not be accepted. If you will submit code in .doc (Word document) you will get zero marks. Upload zip file if there are more
than one file.




The objective of this assignment is to provide hands on experience of


§         Developing GUI application

§         Event handling

§         File Handling

§         Exception handling




§         Code should be properly aligned and well commented.

§         Follow java naming conventions for writing class names, variables names, function
names etc






Problem Statement:


You are required to develop a simple GUI (Graphical user interface) application for the registration of voters.

Your code should take data form user and save it into a text file.

You will make voter class and a GUI.


The Voter Class must have following attributes:

  • National ID Card Number (This should be primary key)
  • Name
  • Father/Husband’s name
  • Age
  • Address
  • Province



GUI should look like this (You are not required to make GUI exactly like this, You can use any layout you like, just all the elements
that is text boxes, labels and buttons 
should  be there





In the above GUI application, when the user clicks ‘Save’ button then it will take the data from the form and store into text file name “voter.txt”. The application must quit by clicking ‘Exit’ button.





Your assignment must be uploaded/submitted on or before 23 November 2010.



Views: 298


Replies to This Discussion

Please Discuss Here about this assignment .Thanks
Bhai is ka solution bhe kaheen na kaheen se dhoond nikalain with great thanks
Can u give some hint , i am not understanding
mention the points u failed to understand
plz send me some idea that how i make this assignment? i m totally confused :-/ plzz if u can
does any one know how to use setPrefferedSize??? (we've used setSize but can't figure out how to use da other)


© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service