Starting from:

$30

CSC20- Final Project Solved



 

Objective: The objective of this project is to practice using files of objects and gain more experiences in developing interactive GUI using Java Swing and AWT toolkits.

 

Project description:

 

In this assignment, you are to design a Java program to maintain a binary file of student records for the class. A student record in the file should include the following information: 

 

            . ID number, a 9-digit integer. 

            . Name, a string of characters

            . Gender. a character

            . Class level, an integer between 1 and 5. 

            . Age, an integer less than 100. 

            . 10 lab scores, integers between 0 and 100. 

Your program should allow the instructor to do the following: 

 

1.     Create a new class.

2.     Load students from a file.

3.     Add new students.

4.     View/Delete students

5.     Enter lab scores.

6.     Backup Students to a file

7.     Sort Students (optional)

User interface requirement:

Your program should have a GUI closely similar to the following.

   

 

 

 

 

 

 

 


 

 

Programming hint about your program structure

 

 

 

                                                                                      Array of Students  



 

 

 

 

 

 

 

 

Programming hint about JLabel: To change the font size of a JLabel.

new JLabel(“<html<font size=5<bJLabel text</b</html”);

 

Programming hints about JTable and JScrollPane:

1.  In the main method, create a JScrollPane and add it to the center of a JPanel, viewPane.

scrollPane = new JScrollPane(); viewPane.add(scrollPane,BorderLayout.CENTER);

2.  In actionPerformed method,

a.  Create a 2-D array of strings, data.

b.  Create a JTable.

JTable abtable = new JTable(data,columnName);

c.  Use the JTable to create a temporary JScrollPane.

JScrollPane tmp = new JScrollPane(abtable);

d.  Get the viewport from the temporary JScrollPane and add it to the original JScrollPane.

scrollPane.setViewport(tmp.getViewport());

 

More products