Develop a graphical user interface based java program

Assignment Help JAVA Programming
Reference no: EM1374346

Your task in this assignment is to develop a graphical user interface based java program that can communicate with a real SMTP email server for sending emails

1. To understand actual communication with an SMTP server can be achieved using TCP Sockets.

2. To understand the development of a graphical user interface (GUI) and use of event handling.

3. To send an actual email using your GUI client

Part-1

- To build a simple Pretend Mail Client (PMC) that prompts the user for typical email fields and then outputs SMTP protocol messages to the screen.
- To understand and construct SMTP protocol messages.
- To understand OOP design.

Write a program (e.g. called PMC.java). This program will perform the following tasks:

1. The following command is used to run your program and accept console input (i.e. input from the keyboard) for email fields and message body,

For example, if the user provides information for the fields of MAIL FROM, TO, SUBJECT, EMAIL-TEXT,
the output format should be as follows:
HELO xxxx.edu.au
MAIL FROM: [email protected]
RCPT TO: [email protected]
DATA
Subject: Hello
This is message.

This output should be displayed to the screen.

2. Accept console input of more complicated emails that contain various optional combinations of extra fields, in particular Carbon Copy ("CC:"), Blind Carbon copy ("BCC:"). For this task, assume that there is at most one email address in each field. That is, if the field of CC and BCC are also provided by the user (eg. CC to [email protected] BCC to [email protected]), the output format should be:

HELO xxxx.edu.au
MAIL FROM: [email protected]
RCPT TO: [email protected]
RCPT TO: [email protected]
RCPT TO: [email protected]
DATA
Subject: Hello
CC: [email protected]
BCC: [email protected]
This is message .

You need to check if the field of CC/BCC is empty (i.e. check if the user enters an email address of CC/BCC). If the fields of CC and BCC are not provided by the user, the output should be that one shown in Task 1.

3. Allow multiple comma separated addresses for each relevant field. For example, the user is allowed to enter more than one email address for the field of TO (e.g., [email protected],[email protected]). The output for this field should be:

RCPT TO: [email protected]
RCPT TO: [email protected]

4. Allow the user to send more than one email without having to restart the PMC.

5. Create a message class that includes fields of MAIL FROM, TO, CC, BCC, SUBJECT, EMAIL-TEXT. It should also include the methods of set and get for each field, e.g. for the field of From (i.e. for MAIL FROM), it should have the methods: setFrom and getFrom.

Use this class to declare 10 objects, e.g. Message [] m= new Message[10]; m[0] is used to store the first email you sent, m[1] is used to store the second email you sent, and so on. Just before exiting, your program should output the emails that you have sent. The format for each email should be the same as described in Tasks 1-3.

6. Your PMC should consist of at least 2 classes.

a. main class to get input and to control the program
b. message class

Part-2

You are to develop a Java program that can communicate with a real SMTP email server for sending emails. You program should provide a GUI (see a sample GUI below) and can successfully send the SMTP commands to the mail server

The requirements are as follows:

1. The Java source files created must compile.
2. The compiled program should be able to send an actual email using correct SMTP commands
3. The GUI program must have:
a. text input fields for each required field,
b. a send button to send the email
c. a clear (or restart) button to clear fields (to, from, subject, message etc)
d. a sent button to output those emails you have sent
e. two text areas,
i. one to compose the email message and
ii. A second to display server responses

120_Develop a graphical user interface based java program.png

Your program must perform the following tasks:

1. Accept minimal email parts for any email recipient [These parts MUST include fields to send messages using SMTP.]

2. Make sure you validate the email fields [This means anywhere you would need an email address, the string should be a valid email address.]

3. Have default values for the Mail From field as well as which SMTP server to send the emails to. The program should allow these values to be changed if desired by user

4. Your program should receive an acknowledgement from the SMTP server and present an appropriate message to the User as to the status of the sent message

5. Make sure your CC: and BCC: functions work as well.

6. The program responds appropriately to events like clicking of a send button

7. Allow users to send more than one email without having to restart the program.

8. Handling multiple comma separated email addresses for each relevant field such as to, cc and bcc.

9. Use the message class you created in stage 1 for the output of those emails sent. You program should support the output up to 10 emails you have sent. (they can be displayed in the message area or on the console window)

You are also required to provide a technical report for your stage 2 program. The report should comprise of the following sections:

1. Title: Your name, Student ID, Team number (even if done individually)
2. A description for your GUI,
3. A description for the classes your created.

For your GUI description, you should describe the GUI components with their layout arrangement used in your program with a hierarchical structure, e.g. using a tree diagram. Here is an example of GUI design for UI1.java.

418_Develop a graphical user interface based java program1.png

Or: fromBox (Box, layout: createHorizontalBox) includes:
"From:" ( JLabel )
fromField: ( JTextField )

Note that: you should indicate the Class name (e.g. Box) and Layout (e.g. Horizontal) you used for a GUI component.

To describe the classes you created, you should provide the purpose of a class you created, and describe how to use each method (and each constructor if it has) in this class.

Your code should be easy to read and must be well commented.

For detailed marks distribution of this assignment refer to attached marking scheme.

Reference no: EM1374346

Questions Cloud

Determine factors that influence price elasticity of demand : Select a product you have purchased in the past month from a clothing or shoe store. Explain how each of the four factors contributed to the elasticity of the good.
Computing the full economic price : Assume the market for natural gas can be explained by, Where P is the price of natural gas per million BTU, Q(D) is the quantity demanded and Q(S) is the quantity supplied of million BTUs of natural gas a day.
Various forms of market structure : The president of your corporation, Mr. daily, has asked you to make a report describing the many forms of market structure. He describe to you that the report will be handed out to staff prior to the staff meeting next week
Stabilizing financial systems : This briefing is particularly important because of the global financial crisis that began in 2007. The briefing is required to provide more foundation for the finance team because they are not well versed in international aspects of finance.
Develop a graphical user interface based java program : Develop a Java program that can communicate with a real SMTP email server for sending emails. TNE 60003 - introduction to network programming, You program should provide a GUI and can successfully send the SMTP commands to the mail server
Determine effect on optimal price : The United States cigarette industry has negotiated with Congress and government agencies to settle liability claims against it. Under the proposed settlement, cigarette firms will make fixed yearly payments to government based on their historic mark..
Describe the various terms in the ad curve : This is a challenging question and involves algebraically solving system of two equations given by AD abd AS curves. The equations for the curves are given through the following:
Determine the shutdown point for firms : The market is perfectly competitive which constant input prices and each firm has the same cost structure from the table listed below;
Finding long run equilibrium price : If a representative company with long run total cost given through TC = 50 + 2q + 2q2 operates in a competitive industry where the market demand is given through QD = 1,500 - 40P,

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create java program to find number of days left in that year

Create a Java program called "DaysLeftInYear.java" that outputs the number of days left in that year. use the calendar class to represent dates. Use the DateFormat class to display the current date in the output.

  Develop java code to compute monthly rent for housing units

Develop a java code that computes monthly rent for 3 housing units namely Bungalows,Apartments and hostels. All housing units have got size,color and monthly rental rate.

  Java application which creates bank records

Write down a java application which creates 10000 bank records and the allow user ti enter a balance and customer account info. using a an account number.

  Minimal spanning tree decreasing edge dismissal

Minimal Spanning Tree Decreasing Edge Dismissal, Reverse-delete algorithm. Develop an implementation that computes the MST

  Create your own date class

You are to write a program that determines the day of the week for New Year's Day in the year 3000. To do this, you must create your own date class (MyDate) and use the following interface and main program:

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

  Build the gui layout of the game

Build the Build the GUI layout of the game in java.

  Give at least one constructor without any parameter

We learned as popular Set implementation. Write own TreeSet class that implements following interface: You are to give at least one constructor without any parameter.

  Create java application which creates random phone number

Create and implement Java application which creates and prints a random phone number of the form xxx-xxx-xxxx. Include the dashes in the output.

  Uml exercise

UML Exercise: Automated Teller Machine (ATM),   1. To allow authorized card holders to make transactions,   Brief Summary of Requirements:

  Determine if strings are equal

Complete the recursive method match in the code below which will determine whether or not two strings match.

  Implement a card game in java

In this assignment, you will be asked to implement a card game. You will need to make several design decisions for your code. It will be expected that all classes you write will utilize the principle of encapsulation.

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