Question
Writing this GUI in Java please. Requirements For this program you will be asked to write a simple data management program. Start by choosing what
Writing this GUI in Java please.
Requirements
For this program you will be asked to write a simple data management program. Start by choosing what sort of thing you would like to keep track of. For example,
Student information
Vacation or travel information
Information about courses
Plants
Pets
Food
Your program will manage your data collection. We will start with the simplest collection of data, a list. Your list will contain the Things of your choice.
Requirements for YourChoiceOfThing Class
Implement the sort of Thing to be stored as a class. The object/class must have the following characteristics:
At least 5 attributes/characteristics
At least one numeric attribute
At least one String attribute
One String attribute should be usable as a search key (for example, the name of a Food item)
Implement getters and setters for all the attributes of your Thing of choice.
Implement an equals() method for your Thing class.
Requirements for the CollectionOfYourThings Class
Create a collection of Things using an array. You may NOT use the library classes ArrayList or Vector.
Implement a constructor which accepts as an argument the maximum size of the data collection.
Implement a search method which returns a single object.
Implement an add, update, delete methods.
User Interface Class
Allow the user to:
Enter data and store it in the list.
Update an entry in the list
Delete an entry from the list
Search for an item in the list.
Duplicates should not be allowed.
Display the complete list. The list which is displayed should accurately reflect the items stored in the data structure. That is, if an item is updated or deleted, the list which is displayed should show that.
Given a search key by the user, search your list for a matching object. Retrieve and display all information for the matching object. The search key should be CASE INSENSITIVE. For example, ITEM should be a match for item or IteM. Your search key must be a string, not a number.
Display the number of items in the list.
Use of a graphical user interface such as swing is required.
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