Prepare a java application will read the database file

Assignment Help JAVA Programming
Reference no: EM13892894

The application shall work as follows:

714_GUI_for_Application.png

1. Upon start-up, the application will read the database file. The path of the database file will be supplied by a run-time parameter. If the database file does not exist, the user will be told the database does not exist and prompted (non-GUI text prompt) asking if they want to create a new one. If the user answers positive, the application will continue with an initially empty song database. If the user answers negatively, the application will exit. An example of an appropriate start-up command is as follows: java SongDB mySongDB.data

2. The original state of the frame shall display the combo box with the first song in the database selected. The Item Code, Description, Artist, Album, and Price fields for this item shall be displayed with the fields disabled (non-editable). The Add, Edit, Delete, and Exit buttons shall be enabled, and the Accept and Cancel buttons shall be disabled.

3. To add a song, the user clicks on the Add button. This will cause the application to clear and enable the Item Code, Description, Artist, Album, and Price fields so the user can enter information for the new song. The Edit and Delete buttons are also disabled, and the Accept and Cancel buttons are enabled. When the user presses the Accept button, the new song will be added to the database and combo box. If the user presses the Cancel button, the entry transaction is canceled and the frame reverts to its original state.

4. To edit an existing song, the user shall select the song from the combo box. The information for the selected song shall then be displayed in the disabled fields. The user then presses the Edit button, which enables the Description, Artist, and Price fields. The user may not change the Item Code.

The Add, Edit, and Delete buttons are disabled, and the Accept and Cancel buttons are enabled. If the user presses the Accept button, the changes are saved and the combo box is updated. If the user presses the Cancel button, the edit transaction is canceled and the frame reverts to its original state.

5. To delete an existing song, the user shall select the song from the combo box. The information forthe song shall then be displayed in the disabled fields. If the user presses the Delete button, the song is deleted from the database and the combo box.

6. When the user presses the Exit button the application shall terminate. The current state of the database shall be saved in a file using the pathname supplied at program start-up (see above).

7. Data fields shall be validated to ensure they are not blank with appropriate error messages displayed. If the song is a single, the text "None" will be used for the album name. The price field shall be validated to ensure only numeric data is entered.

Reference no: EM13892894

Questions Cloud

What could be your picot statement : Based on the above, what will be the impact of the problem, and what can you say is the proposed solution from the PICOT statement?
Prepare closing journal entries : 1.Use the May 31 fiscal year end information from the following ledger accounts (assume that all accounts have normal balances) to prepare closing journal entries and then post those entries to the appropriate ledgeraccounts
Facebook social-context : Nike bought ads on users' homepages in 20 countries prior to the World Cup, and Ford uses Facebook's social-context ads to promote the Explorer. Although most ads on Facebook cost as little as a dollar per click to marketers, the total cost of a s..
Why is a nursing taxonomy important : What is the advantage of having a unified language for nursing within the larger concept of a unified language system for the healthcare community?
Prepare a java application will read the database file : Prepare a java application will read the database file. The path of the database file will be supplied by a run-time parameter. If the database file does not exist, the user will be told the database does not exist.
How many hospitality majors enter the work : How many hospitality majors enter the work force after graduation?
Explore how it is dealt with in three different greek myths : For your final paper, CHOOSE ONE OF THE FOLLOWING THEMES (or choose one of your own) and explore how it is dealt with in THREE different Greek myths: Memory and forgetting, Home (what is it? Why is it important?) and Religious reverence and the pow..
A hotel outside the united states : What are the benefits of working for a hotel outside the United States?
Factors that affecting companys ability to break even : Identify three factors that are affecting airline company's ability to break even. For each of your factors, discuss how these have an impact on the breakeven (contribution margin, fixed costs, variable costs, a combination, etc.), and what happen..

Reviews

Write a Review

JAVA Programming Questions & Answers

  Write a java code to count number of capital letters in line

Write a java codenpseudo-code to count the number of capital letters in a line of text. How many comparisons does it do? What is the fewestnumber of increments it might do? What is the largest number?

  Cmpet 301 lab 11 overview

CMPET 301: Lab 11 Overview, Create a class for one playing card. Make a deck of playing cards by instantiating an array of 52 playing cards playing cards.

  Create a table that depicts the runtime for arrays

Create a table that depicts the runtime for arrays of length 1 to 10. Would you expect the general runtime to be O(n), O(n2), O(n3), or some other function of n? Explain

  Output the number of vowels

Prompt the user to enter a string, and using a loop, count and output the number of vowels, and consonants the string contains. (You have to find methods from class.)

  Modify the homestead furniture store application

Design an application for the homestead furniture store that gets sales transaction data including an account number customer name and purchase price.

  Build a simple text-based adventure game

Build a simple text-based adventure game. You can and probably should use our Missed Connections example as the foundation for your game.

  Write a program that shows the current time and date

Write a program that shows the current time and date

  Write a program to print out a simplified bill

Write a program to print out a simplified bill. The customer's name, the number of hours of labor, and the cost of parts and supplies should be entered in response to INPUT statements.

  Determine the unit product cost of one pound

Determine the unit product cost of one pound of the Kenya Dark coffee and one pound of the Viet Select coffee and determine the unit product cost of one pound of the Kenya Dark coffee and one pound of the Viet Select coffee.

  How many tickets for each class of seats were sold

Prepare a program that asks how many tickets for each class of seats were sold, then shows the amount of income generated from ticket sales.

  Demonstrate all of the methods of your stack.

Create a StackTest.java file to demonstrate all of the methods of your stack. Instantiate two stacks; one for String and one for Integer. Push words/integers onto your stack. After you have pushed a series of words/integers on your stack use..

  The code must take into account

The code must take into account leap year and adding or subtracting between years. Write two additional methods that you come with on your own as well.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd