Java Program II IND project 1

Your proposed GUI design has been approved by management. Management is confident that this will help them determine the effectiveness of their sales force. They are ready to have you implement the GUI. Before designing the application further, they want to first have the GUI implemented to perform very basic functionality. As you progress through the assignments, your submission will culminate in a Final Key Assignment.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Application Requirements:

Implement the Swing application using the GUI you designed in the Phase 1 Discussion Board. The user will have to enter the following data items:

  1. Sales representative ID
  2. Sales representative First Name
  3. Sales representative Last Name
  4. Total sold for each of three categories: office supplies, books, and paper
  5. Sales district (North, South, East, West).
  6. Preferred means of contact with potential buyers (phone, e-mail, visit)

Include a QUIT button to exit the application and an ENTER button that causes the sales representative’s data to be retrieved from the GUI components and submitted to the application. The sales representative’s data will echo to the jTextArea each time the ENTER button is pressed.

Your application should be thoroughly commented.

Save Time On Research and Writing
Hire a Pro to Write You a 100% Plagiarism-Free Paper.
Get My Paper

Intermediate-level Java programming should be demonstrated:

  • Program flow should be logical.
  • Projects should be developed in NetBeans and zipped prior to submission.
  • Your application should execute by running the main project.
  • Do not submit any code within your project that is not related to this assignment.
  • Applications that do not compile will receive feedback but not a passing grade.

Please submit your zipped NetBeans project.

 

template:

  

Java Swing Components Suitability

 

FIELD

SWING COMPONENT

SUITABILITY

àSales Representative ID

àRepresentative First Name

àRepresentative Last Name

àOffice Supplies Sales

àBook Sales

àPaper Sales

JTextField (One for each field)

Suitable for entry and display of short string values. These fields will all hold values that are no more than a few characters and therefore can be displayed in only one short line within a text box component.

àSales Districts

Grouped JRadioButtons (One for each district)

Suitable where there are multiple options to choose from and the user is allowed to select only one option

àMeans of Contact

JCheckBox (One for each option)

Suitable where there are multiple options to choose from and the user is allowed to select more than one option

àQuit Application

àSubmit Entries

JButton (One for each function)

Suitable for triggering action events

      

Sales Representative User Interface

 

PSEUDOCODE

 

Variables : rep_id, first_name, last_name, office_supplies, book_sales, paper_sales, district, phone, email, visit;

 

ACTION_ENTER

 { 

                IF (All required fields have been filled)

 

SET rep_id;

 

                                SET first_name;

 

                                SET last_name;

 

                                SET office_supplies;

 

                                SET book_sales;               

 

                                SET paper_sales;

 

                                SET phone;

 

                                SET email;

 

                                SET visit;

 

                                IF (North isSelected) SET district = North;

 

               

                ELSE

IF (South isSelected) SET district = South;

 

                                ELSE IF (EAST isSelected) SET district = East;

 

                                ELSE SET district = West;

                 ELSE 

                                Prompt user to enter missing values

 }               

ACTION_QUIT

 { 

                IF (there are pending changes)

 

                                Prompt to SAVE;

 

                EXIT App;

 }    

Still stressed from student homework?
Get quality assistance from academic writers!

Order your essay today and save 25% with the discount code LAVENDER