Create an address class to keep related instance variables

Assignment Help Management Information Sys
Reference no: EM132269227

QUESTIONS

UPLOAD

• AddressScreen.java

• AddressScreen.form (if you use a Java form)

• Database.java

• AddressOptions.java

• Address.java

1. Write a simple Address Book application. (100 pts).

a. Useaddressbook.sqltosetupadatabase.Yourdatabasenamewill be: addressbook.

b. Your path must be: jdbc:derby://localhost:1527/addressbook

c. Create a database class to keep related instance variables of your database.

d. Create an address class to keep related instance variables for an address. Add a constructor and set and get methods.

e. Create an AddressOptions class to keep all related methods.

f. Create a Java form which will be AddressScreen. (You can prefer to create .java file instead of a java form. Then, you will not upload a java form. However, when you create a java form, Netbeans also creates a .java file for you under the source folder. So, you will upload both.)

g. You will have 6 Jlabels, 4 JTextFields, 1 JTable, and 4 JButtons. Check the figure below.

h. Title will be "Address Book".

i. In one of the labels, display a title which is "Address Book".

j. When the program runs, in the table, you must list all related data. If the table is blank, do not display any row.

k. Cells must not be editable and resizable.

l. JTable must displayed in a JPanel.

m. Set a different background color for your JPanel.

n. A user fills first name, last name, e-mail, and phone number to add an address, and then click "add address" button. If any text field is blank, you will display a message that the user must supply all related values.

o. If text fields do not include any null value, a new address will be added, all data including new one, will be listed in the table. All text fields will be cleared. You will also display a message that the address is added successfully. See the figures below.

p. To update an address, the user must select a row and the table is not blank. You must control them and display a message that the table is blank, or a row is not selected. When a user clicks on a row, address details will be displayed in the related text fields. See the figures below.

q. The user updates values in any text field and then clicks "Update Address". Then, the address is updated.

r. When an address is updated, you must clear the text fields. You must display a message that the address is updated successfully. You must list updated version of the data in the table.

s. To delete an address, the user must select a row and the table is not blank. You must control them and display a message that the table is blank, or a row is not selected. When a user clicks on a row, address details will be displayed in the related text fields. See figures below.

t. When an address is deleted, you must clear the text fields. You must display a message that the address is deleted successfully. You must list updated version of the data in the table.

u. If the user clicks "Delete All" button, you will delete all data in the table and a blank table will be listed. Also, display a message that all addresses are deleted successfully. However, if the table is already a blank table, you will display a message that the table is blank. Check the figures below.

v. Change the icon of your JFrame. Use the icon provided to you. In this assignment, it is your responsibility to learn how to change an icon of a JFrame component.

Attachment:- QUESTIONS.rar

Reference no: EM132269227

Questions Cloud

Evaluate the current five-year plan : Evaluate the current five-year plan, research technological solutions, work with existing stakeholders, and then recommend changes to the "Activities" section.
Target market-sales force creating successful sales force : Target Market and Sales Force Creating a successful sales force requires a good fit with potential and current customers in your target market.
Market failures of imperfect competition : Explain the assumptions of [markets must have to be competitive and efficient] related to market failures of Imperfect competition, imperfect information
Market resemble perfect competition : Do the stock market or the currency market resemble perfect competition? What about the copper market?
Create an address class to keep related instance variables : Create an address class to keep related instance variables for an address. Add a constructor and set and get methods.
Your firm is contemplating foreign expansion : Assume that you are in international manager and your firm is contemplating foreign expansion.
Find globo optimal price : Globo Public Supply has $1,000,000 in assets. Its demand curve is: P = 206 - .20•Q and its total cost function is: TC = 20,000 + 6•Q where TC excludes
What is corresponding marginal cost function : Assume that firms in the perfectly competitive ice cream industry face a total cost TC = 2Q² + 2Q + 100. Sofia is a producer in this industry and faces
Keynesian theory of investment : In Keynesian theory of investment, suppose an asset costs $1000 and it is expected to yield $600 at the end of year 1 and $600 at the end of the second year

Reviews

Write a Review

Management Information Sys Questions & Answers

  Information technology and the changing fabric

Illustrations of concepts from organizational structure, organizational power and politics and organizational culture.

  Case study: software-as-a-service goes mainstream

Explain the questions based on case study. case study - salesforce.com: software-as-a-service goes mainstream

  Research proposal on cloud computing

The usage and influence of outsourcing and cloud computing on Management Information Systems is the proposed topic of the research project.

  Host an e-commerce site for a small start-up company

This paper will help develop internet skills in commercial services for hosting an e-commerce site for a small start-up company.

  How are internet technologies affecting the structure

How are Internet technologies affecting the structure and work roles of modern organizations?

  Segregation of duties in the personal computing environment

Why is inadequate segregation of duties a problem in the personal computing environment?

  Social media strategy implementation and evaluation

Social media strategy implementation and evaluation

  Problems in the personal computing environment

What is the basic purpose behind segregation of duties a problem in the personal computing environment?

  Role of it/is in an organisation

Prepare a presentation on Information Systems and Organizational changes

  Perky pies

Information systems to adequately manage supply both up and down stream.

  Mark the equilibrium price and quantity

The demand schedule for computer chips.

  Visit and analyze the company-specific web-site

Visit and analyze the Company-specific web-site with respect to E-Commerce issues

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