Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Guys I need help with this lab really really quick. Thanks!! You have been asked to write a schedule application for a student to make
Guys I need help with this lab really really quick. Thanks!!
You have been asked to write a schedule application for a student to make their course schedule. Rather than tell you exactly what he wants, the student has provided a list of requirements that are rather arbitrary: .The GUI should have a text field for the student name and a button called, "initialize" All other GUI elements should be disabled until a valid name is entered and initialize is hit The initialize button must have a small image on the button, for the sake of looking more engaging When initialize is hit, disable the initialize button so the user cannot reinitialize, .The GUI should then enable two more buttons-Add and Remove, as well as JList with a scroll pane and a text field for inputting class names The user should be able to input class names, one at a time, by writing a name into the text field for class names and hitting the Add button The user should be able to remove items by pressing the Remove button Finally, add a JMenuBar with two Menus: o A File menu with Save/Load capability, Clear, and Exit Save and Load should use a JFileChooser Saving should save the student name, then a list of all the classes after the student Loading should load the name into the name text field Clear should clear the GUI to a starting state-no classes in the list, no student name, and initialize set to enabled while the rest of the GUI is disabled Exit should exit the application o A Color Menu with four JRadioButtonMenultems Each JRBM must correspond to a color Changing the radio button should change the GUI's background color o These menus should have appropriate mnemonics(hot keys) set up Your GUI must use borders in some way to separate out the student name and initialize button from the rest of the GUI- the exact layout is up to you The design is up to you. However, it is suggested you have a class to represent a Student to ease saving and loading a little bit. You are not required to use custom JPanels, but you can if you wish. Further, you must extend JFrame for your main window, as we do in claSS
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