Advertisement

Assignment No. 02 Semester: Fall 2009 CS506: Web Design & Development

Instructions

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 files and text file. Assignment in any other format (extension) will not be accepted. If you will submit code in .doc (Word document) you will get zero marks. You have to upload zip file if there are more than one file.

Objective

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

§ Developing GUI application

§ Collections

§ Event handling

§ File Handling

§ Exception handling

Guidelines

§ Code should be properly aligned and well commented.

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

Assignment


Problem Statement:

You are required to develop a simple GUI (Graphical user interface) application for the registration of students in an institution. The program should be able to store the student data into a text file and when the user starts up the application again then previously stored data of student must also be saved into text file. The program should be able to handle events such as ActionEvent and ItemEvent.

The class Student must have following attributes:

  • Student Id
  • Student name
  • Student father’s name
  • Student age
  • Phone number
  • Study Program

The output of the GUI may be as given below:

The GUI must have labels, text boxes, combo box and buttons as shown in the figure below. The title of application must be displayed within center at the top of application.



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

Deadline

Your assignment must be uploaded/submitted on or before 12th Nov, 2009

0 Responses