Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is created with Java. Create a GUI program using JFrame and the required Swing, as shown in the sample below. a. Include a CD

This is created with Java.

Create a GUI program using JFrame and the required Swing, as shown in the sample below.

a. Include a CD in a collection of CD objects. c. Modify the CD entry using the CD ID c. Based on CD ID, remove the CD

d. Perform a music genre search and display a list of every CD in that genre. g. Look up the artist and display a list of all of their CDs. i. Discuss the number of albums this particular artist has released

f. Provide information on each CD in the collection of CD objects. g. A sorting option based on the name of the artist. a second on the year of manufacturing.

Create a new class that represents the CD object. This class should include data about the CD, such as CD ID, artist name, number of songs, year of production, and genre. Also, create goat and setter methods for each datamember so that these values can be retrieved and modified.

Create an array of CD objects. This can be done by creating an array of the type CD and giving it a suitable size.

Create a JFrame to view the GUI. This can be done by creating a new instance of JFrame and specifying the title, size and other desired properties.

Add Swing components to JFrame to enable interaction with the application. This can be done by creating various components, such as buttons, text fields, and lists, and adding them to JFrame using the add method.

Create event handlers for various interactions with the GUI program, such as adding a CD to the array, changing the details of a CD based on CD id, removing a CD based on CD id, searching by music genre and listing all CDs for the searched genre, searching the artist and listing all CDs for the searched artist, listing data about all CDs in the array of CD objects, Sort the list by artist's name or year of production. This can be done by creating different event handler classes that implement the ActionListener interface and adding these classes as listeners for different components.

Create a Comparator class to sort the array of CD objects by artist name or year of production. This can be done by creating a class that implements the Comparator interface and implementing the compare method to compare two CD objects and decide which one should come first in the sort.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 15th International Conference Dexa 2004 Zaragoza Spain August 30 September 3 2004 Proceedings Lncs 3180

Authors: Fernando Galindo ,Makoto Takizawa ,Roland Traunmuller

2004th Edition

3540229361, 978-3540229360

More Books

Students also viewed these Databases questions

Question

Explain the chemical properties of acids with examples.

Answered: 1 week ago

Question

Write the properties of Group theory.

Answered: 1 week ago

Question

How is slaked lime powder prepared ?

Answered: 1 week ago

Question

Why does electric current flow through acid?

Answered: 1 week ago