In this activity, you will implement a small subset of your course project functionality using the MVC architecture pattern.
Consider where in your application you need to present the user with access to a collection of data (e.g. a list). For example, in the Vintage Sounds demo application we may want the user to be able to step through the list of instruments in inventory.
For this assignment, you will need five classes:
- The application class with the main method
- A controller class
- A model class (for example, in Vintage Sounds, Instrument)
- A second model class containing an ArrayList of model class objects (e.g., InstrumentList)
- A view class (e.g., InstrumentUI)
When the application is launched:
- The main method creates an instance of the controller class.
- The controller class creates the list of model objects, both the ArrayList and its members.
- The controller class creates and shows an instance of the view class. The view class should include JTextFields to display data accessed from the model objects.
- When the view class is first shown, it should display data from the object in the first position of the ArrayList.
- The view class should include buttons to allow a user to move backwards or forwards through the objects in the ArrayList.
- The user may also change any of the fields in a particular object, delete an object, add a new object, or exit the application.
- All of the behavior above should be mediated by the controller class. In other words, the view class should only communicate with the controller, and the controller alone manages interactions with the model objects.
Zip (compress) your entire project Netbeans folder and submit this compressed archive to Canvas before the due date and time.
Please review rubric below for grading breakdown.
Implementing a Simple MVC Application Rubric
|Implementing a Simple MVC Application Rubric|
|This criterion is linked to a Learning OutcomeThe main method instantiates the controller.||
|This criterion is linked to a Learning OutcomeThe controller instantiates the list of model objects.||
|This criterion is linked to a Learning OutcomeThe controller instantiates and shows the view class with the first model object’s data displayed.||
|This criterion is linked to a Learning OutcomeThe user can move backward or forward through the list of model objects without overrunning the boundaries of the ArrayList.||
|This criterion is linked to a Learning OutcomeThe user can edit the data on a single model object.||
|This criterion is linked to a Learning OutcomeThe user can add a single model object.||
|This criterion is linked to a Learning OutcomeThe user can delete a single model object.||
|This criterion is linked to a Learning OutcomeThe application runs with no runtime errors.||
|Total Points: 100.0|
The above program needs to compile in next beans with functionality when the following happens:
- Populate the ClubList ArrayList (both Team Name and Team Mascot fields)
- Code programmed in the “Club Cntl” class to execute when (next, previous, update, delete and add new buttons are presses)
- Finally it needs to be able to refresh and update in real time if an item is added or removed from the compiler
What Students Are Saying About Us.......... Customer ID: 12*** | Rating: ⭐⭐⭐⭐⭐
"Honestly, I was afraid to send my paper to you, but you proved you are a trustworthy service. My essay was done in less than a day, and I received a brilliant piece. I didn’t even believe it was my essay at first 🙂 Great job, thank you!"
.......... Customer ID: 11***| Rating: ⭐⭐⭐⭐⭐
"This company is the best there is. They saved me so many times, I cannot even keep count. Now I recommend it to all my friends, and none of them have complained about it. The writers here are excellent."