Question
Please try to solve this... This assignment lets you practice concepts such as Object Serialization, and Swing (or Java FX) GUI. In this assignment, you
Please try to solve this...
This assignment lets you practice concepts such as Object Serialization, and Swing (or Java FX) GUI. In this assignment, you will be working with some objects of a Student class (which should be serializable.) This class has fields such as stdID (int), firstName (String), lastName (String), and courses (an array or preferably an ArrayList which contains the names of the courses the student currently has). Please provide constructors, getters, and setters, where appropriate. In the second class, you will need to enter some information for some student objects from the console and save these student objects in a file. And finally, in the third class of this project, you need to read those student objects from the file, and then show their info in the console, to verify that they had been saved (and serialized) correctly. For Workshop 6, after we have covered GUI programming in Java in the next lectures, you should design a Swing (or Java FX) GUI-based Java application to do the same job. It could be as simple as (at least) a JFrame with some JTextFields and a JButton (to let the user enter the information of the students and save them), and a JTextArea and another JButton (to let the application to read the information of all saved students from the file and show them to the user.) Note that we should be able to run the third class and retrieve the data (student objects) already stored in the file independent of running the second class first (assuming we have serialized some objects by running the second class in advance). These two classes should be treated and/or run as two independent processes/programs in your project. The same applies to the GUI version; you could have an interface which lets you choose whether you want to read/load or save students' info.
Can u please help me with just workshop 6....................only
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started