Question: Lab ( .zip ): [ http://expirebox.com/files/8afaa9f0785423dfdade095767ec3ac5.zip ] You will complete a simple mock mp3 player in this lab. Most of the interface is already complete.

Lab (.zip): [http://expirebox.com/files/8afaa9f0785423dfdade095767ec3ac5.zip]

Lab (.zip): [http://expirebox.com/files/8afaa9f0785423dfdade095767ec3ac5.zip] You will complete a simple mock mp3 player in

You will complete a simple mock mp3 player in this lab. Most of the interface is already complete. You will add code to create, load and save a playlist. There is code in this lab that you will use but are not expected to understand. Your code will handle events initiated by the user (e.g. button clicks). In future labs you will learn how to create your own GUIs and how to respond to events. When you create your project, uncheck the box that tells Netbeans to create the "main" method for you since the code I will give you already has a main method in the GUI. mySongs[TITLES] - An array of strings containing the title of the songs. mySongs[LOCATIONS] - Corresponding full pathnames of the songs. The locations of these arrays are related. For example mySongs[TITLES][5] and mySongs[LOCATIONS][5] contain the title and pathname of the 6th item in the playlist. When sorting your playlist, swaps must be made in both arrays to keep the corresponding array items synchronized. The GUI form uses a JList to represent the playlist. You can use the following methods to manipulate the JList: setListData(array) - display the array items in the list. getSelectedlndex() - return the index of the currently selected item in the list. getSelectedValue() - return the value of the currently selected item in the list. For more information about the J List class, look at the Java documentation. Save the items in the playlist into a text file. Use a try/catch block as demonstrated in the last lab and in the lecture examples. The format of the text file should be: Replace the current contents of the play list with the items in the selected file. Add Song: Most of this code has already been written for you. You are required to add the new song information obtained from the user to the multidimensional array. Sort List: Implement one of the sort algorithms discussed in class to arrange your play list by title. Remember, your swaps must be performed on both arrays to keep them synchronized

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!