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

  Write a method called makerow

Write a method called makeRow that is passed two arguments: an int and a String. It returns a String containing n copies of s, concatenated in a row. For instance, if we call the method with makeRow(5, "*"), the method returns *****.

  Solving programming problems

Write a computer program that will figure out the total of an order when given the amount of the order ($1000) and a sales tax rate of eight percent.

  Java code that needs to be coded-complex number class

Just a Java Code that needs to be coded. Your given the design, just needs the methods and such to be fixed. This is for a Complex Number class.

  Program that allows a user to input coordinates

In Java make a program that allows a user to input coordinates as to make a Hexagon via an array, and my professor has set the standards of: Write a class Polygon which draws a hexagon for a set of numbers given by the user.

  Program to track hourly employee arrival and departure time

THE JAVA SOURCE CODEA company hires you to write a program to track hourly employee arrival and departure times from work. In essence, you are tasked to make an online time clock. The time clock shall keep a history of an employee’s hours for a two-w..

  Write a method called negative sum

Write a method called negativeSum that accepts a Scanner reading input from a file containing a series of integers, and print a message to the console indicating whether the sum starting from the first number is ever negative

  File integrity checker - tripwire

Write a program that will perform some of the basic tasks accomplished by a file integrity checker such as Tripwire.

  Java program which handles events from different sources

how to setup a program to respond to events from any one of these sources. How do you create the necessary listener class? How do you associate the listener object with the event source?

  Java program for real estate agent

Write down java program for real estate agent. Program must perform the following tasks: ask users for average house price for the each of past 5 years for single family residence of 1500 square feet.

  Method splitstack that takes a stack

Write a method splitStack that takes a stack of integers as a parameter and splits it into negatives and non-negatives. The numbers in the stack should be rearranged so that all the negatives appear on the bottom of the stack and all the non-negat..

  Javascript validation - cgi program

CGI mailer script form-mail.pl to your server's cgi-bin directory, and change the permissions on the script to make it executable - BMIS 310

  Application named arithmeticmethods

Create an application named ArithmeticMethods whose main() method holds two integer variables. Assign values to the variables. In turn, pass each value to methods named displayNumberPlus10()

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