Assignment No. 02
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
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.
java naming conventions for writing class names, variables names, function
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:
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
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.