Development of a graphical user interface

Assignment Help JAVA Programming
Reference no: EM13315624

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

- 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,

java MyPMC
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 swin.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 swin.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 

Reference no: EM13315624

Questions Cloud

Determine the minimum theoretical wall thickness : compressed nitrogen (140 lbm) is stored in a spherical tank of diameter D = 2.5 ft @ temp. of 77 degrees Fahrenheit . what is the pressure inside the tank? if the max allowable stress is 30 ksi, find the minimum theoretical wall thickness.
Estimate the channel roughness in trapezoidal channel : flow of 600cfs is measured at a depth of 3.4 ft in trapezoidal channel with bottom width of 25ft and side slopes of 3:1(h:v). The channel reach has a slope of .002. Estimate the channel roughness.
Determine the average power transmitted by the wave : A fellow student of mathematical bent tells you that the wave function of a traveling wave on a thin rope isy(x,t)= 2.10mm cos[( 6.96rad/m )x+( 744rad/s )t]. Determine the average power transmitted by the wave
Predict aqueous phase equilibrium concentration of phenan : Predict the aqueous phase equilibrium concentration of phenanthrene at 25*C if the values for this compound are Cs = 1.1 mg/L, P^v = 1.6 x 10^-7 atm, KH = 4.0 x 10^-5 atm*m^3/mol, and logKow = 4.52.
Development of a graphical user interface : Understand actual communication with an SMTP server can be achieved using TCP Sockets and understand the development of a graphical user interface (GUI) and use of event handling.
Calculate the present value of the bond : 1. Consider a one-year discount bond that pays $2,000 one year from now. If the rate of discount is 3 percent, calculate the present value of the bond.
Estimate the average time between collisions : Carbon disulfide (CS2) has a vapor pressure of 300 Torr at room temperature, estimate the average time between collisions that the gas is experiencing inside the test chamber
What is the wavelength of the third harmonic for this wire : A vertical, 1.30-m length of 18-gauge (diameter of 1.024 mm) copper wire has a 160.0-N ball hanging from it. What is the wavelength of the third harmonic for this wire
Describe how free market features : Describe how free market features could be introduced to help alleviate the problem

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

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

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