Using Java:   1 Description of the Program In this assignment, you are asked to implement a graphical application that displays a list of courses. Briefly, this GUI will take the inputs (i.e., course information), store them in an array list, and display course information in the output area. Figure 1 shows the layout of the CourseDisplay GUI. Figure 1: A screenshot of the CourseDisplay GUI. 2 Details of the program You should have three Java files: 1. CourseDisplayFrame class that extends JFrame class (The main part of your program). 2. CourseDisplayViewer class, which contains the main method where a CourseDisplay object will be created, and the GUI will pop up (Suggested frame width of 450, and frame height of 400). 3. Course class, which is the class that models the Course objects (This file will be given to you). 1 In your CourseDisplayFrame class file, you should have the followings: • Input area: – A text label and a text field (suggested width of 30) for course code; – A text label and a text field (suggested width of 30) for course name; – A text label and a text field (suggested width of 30) for course credit; – A text label and a text field (suggested width of 30) for course grade; • Buttons: – One button (AddCourse) used for adding a course into your course list, and append this course in the output area; – One button (SortByCode) used for sorting the course list by course code. The so the output should be displayed as in Figure 2. Figure 2: A screenshot of the sorted Courses by course code. – One button (SortByName) used for sorting the course list by course name. The output should be displayed as in Figure 3. – One button (SortByGrade) used for sorting the course list by course grade. The output should be displayed as in Figure 4. – One button (ResetInput) used for resetting all input fields; • Output area: – One text area (suggested row of 10 and column of 35) that displays course information; You may initialize the text area by including the headings (Code, Name, Credit, and Grade)

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Using Java:

 

1 Description of the Program In this assignment, you are asked to implement a graphical application that displays a list of courses. Briefly, this GUI will take the inputs (i.e., course information), store them in an array list, and display course information in the output area. Figure 1 shows the layout of the CourseDisplay GUI. Figure 1: A screenshot of the CourseDisplay GUI. 2 Details of the program You should have three Java files: 1. CourseDisplayFrame class that extends JFrame class (The main part of your program). 2. CourseDisplayViewer class, which contains the main method where a CourseDisplay object will be created, and the GUI will pop up (Suggested frame width of 450, and frame height of 400). 3. Course class, which is the class that models the Course objects (This file will be given to you). 1 In your CourseDisplayFrame class file, you should have the followings: • Input area: – A text label and a text field (suggested width of 30) for course code; – A text label and a text field (suggested width of 30) for course name; – A text label and a text field (suggested width of 30) for course credit; – A text label and a text field (suggested width of 30) for course grade; • Buttons: – One button (AddCourse) used for adding a course into your course list, and append this course in the output area; – One button (SortByCode) used for sorting the course list by course code. The so the output should be displayed as in Figure 2. Figure 2: A screenshot of the sorted Courses by course code. – One button (SortByName) used for sorting the course list by course name. The output should be displayed as in Figure 3. – One button (SortByGrade) used for sorting the course list by course grade. The output should be displayed as in Figure 4. – One button (ResetInput) used for resetting all input fields; • Output area: – One text area (suggested row of 10 and column of 35) that displays course information; You may initialize the text area by including the headings (Code, Name, Credit, and Grade)

4 My Couse Display Frame
4 My Couse Display Frame
Course Code: CPSC100
Course Code: CPSC100
Course Name: PC Uses
Course Name: PC Uses
Course Credit: 3
Course Credit: 3
Course Grade: A
Course Grade: A
AddCourse
Sort By Code
Sort By Name
AddCourse
Sort By Code
Sort By Name
Sort By Grade
Reset Input
Sort By Grade
Reset Input
Code
Name
Credit
Grade
Code
Name
Credit
Grade
CPSC131
Java II
3
C
CPSC100
PC Uses
3
A
CPSC130
Java I
3
B
CPSC130
Java I
B
МАТH140
CalcI
4
A
CPSC131
Java II
CPSC100
PC Uses
A
MATH140
CalcI
A
Figure 1: A screenshot of the CourseDisplay GUI. Figure 2: A screenshot of the sorted Courses by course code.
4 My Couse Display Frame
4 My Couse Display Frame
Course Code: CPSC100
Course Code: CPSC100
Course Name: PC Uses
Course Name: PC Uses
Course Credit: 3
Course Credit: 3
Course Grade: A
Course Grade: A
AddCourse
Sort By Code
Sort By Name
AddCourse
Sort By Code
Sort By Name
Sort By Grade
Reset Input
Sort By Grade
Reset Input
Code
Name
Credit
Grade
Code
MATH140
CPSC100
Name
Credit
Grade
MATH140
CalcI
4
A
CalcI
4
A
CPSC130
Javal
3
B
PC Uses
A
CPSC131
Java II
3
CPSC130
Javal
B
CPSC100
PC Uses
3
A
CPSC131
Java II
3
Figure 3: A screenshot of the sorted Courses by course name. Figure 4: A screenshot of the sorted Courses by course grade.
Transcribed Image Text:4 My Couse Display Frame 4 My Couse Display Frame Course Code: CPSC100 Course Code: CPSC100 Course Name: PC Uses Course Name: PC Uses Course Credit: 3 Course Credit: 3 Course Grade: A Course Grade: A AddCourse Sort By Code Sort By Name AddCourse Sort By Code Sort By Name Sort By Grade Reset Input Sort By Grade Reset Input Code Name Credit Grade Code Name Credit Grade CPSC131 Java II 3 C CPSC100 PC Uses 3 A CPSC130 Java I 3 B CPSC130 Java I B МАТH140 CalcI 4 A CPSC131 Java II CPSC100 PC Uses A MATH140 CalcI A Figure 1: A screenshot of the CourseDisplay GUI. Figure 2: A screenshot of the sorted Courses by course code. 4 My Couse Display Frame 4 My Couse Display Frame Course Code: CPSC100 Course Code: CPSC100 Course Name: PC Uses Course Name: PC Uses Course Credit: 3 Course Credit: 3 Course Grade: A Course Grade: A AddCourse Sort By Code Sort By Name AddCourse Sort By Code Sort By Name Sort By Grade Reset Input Sort By Grade Reset Input Code Name Credit Grade Code MATH140 CPSC100 Name Credit Grade MATH140 CalcI 4 A CalcI 4 A CPSC130 Javal 3 B PC Uses A CPSC131 Java II 3 CPSC130 Javal B CPSC100 PC Uses 3 A CPSC131 Java II 3 Figure 3: A screenshot of the sorted Courses by course name. Figure 4: A screenshot of the sorted Courses by course grade.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY