a. Search the Java Web site for information on how to use a JTextArea. Write an application
Question:
a. Search the Java Web site for information on how to use a JTextArea. Write an application for the WebBuy Company that allows a user to compose the three parts of a complete e-mail message: the “To:”, “Subject:”, and “Message:” text. The “To:” and “Subject:” text areas should provide a single line for data entry. The “Message:” area should allow multiple lines of input and be able to scroll if necessary to accommodate a long message. The user clicks a button to send the e-mail message.When the message is complete and the Send button is clicked, the application should display “Mail has been sent!” on a new line in the message area. Save the file as JEMail.java.
b. Modify the JEMail application to include a Clear button that the user can click at any time to clear the “To:”, “Subject:”, and “Message:” fields. Save the file as JEMail2.java.
Step by Step Answer:
a import javaxswing import javaawt import javaawtevent public class JEMail extends JFrame implements ActionListener private JLabel toLabel new JLabelT...View the full answer
Students also viewed these Computer science questions
-
The multiple choice questions presented in Question 2 above are low context. You should be able to answer them simply by a careful reading of the chapter. These questions, on the other hand, are high...
-
The headquarters of Hill Crest Corporation, a private company with $15.5 million in annual sales, is located in California. Hill Crest provides for its 150 clients an online legal software service...
-
The manager of a supermarket in Hoboken, New Jersey, has two local newspapers competing for weekly ads. The salesperson for newspaper A claims that although A's rates are significantly higher than...
-
A limited partnership: Multiple Choice has an unlimited life. can opt to be taxed as a corporation. terminates at the death of any one limited partner. has at least one partner who has unlimited...
-
Weights of paper discarded by households each week are normally distributed with a mean of 4.3 kg and a standard deviation of 1.9 kg. Find P33, which is the weight that separates the bottom 33% from...
-
The diagram shows a metal plate consisting of a rectangle with sides xcm and rcm and two identical sectors of a circle of radius rcm. The perimeter of the plate is 100 cm. a. Show that the area, Acm...
-
Compare distributed databases to database servers.
-
We know that fast shipping is important to our customers, and marketing a shorter ship time on a product page can significantly increase the likelihood of a customer purchasing that product. 1. Name...
-
Bonus: The angle of depression of the top of Billings Building from the roof of the Wolcott Building (in the same vertical plane) is 33.10, and from the 15th floor it is 21.50. If the distance...
-
Maryland Manufacturing (M2) produces a part using an expensive proprietary machine that can only be leased. The leasing company offers two contracts. The first (unit-rate lease) is one where M2 would...
-
Create the game Lights Out using a BorderLayout. Place a five-by-five grid of panels in one region, and reserve another region for a congratulatory message. Randomly set each panel in the grid to a...
-
The game StopGate is played on a checkerboard with a set of dominoes; each domino is large enough to cover two checkerboard squares. One player places a domino horizontally on the checkerboard,...
-
Suppose 1.50 atm of CH4(g), 2.50 atm of C2H6(g), and 15.00 atm of O2(g) are placed in a flask at a given temperature. The reactions are CH4(g) + 2O2(g) CO2(g) + 2H2O(g) Kp = 1.0 104 2C2H6(g) +...
-
Why is the need for inclusive growth felt? What is the role of the state regarding inclusive growth?
-
Given f(x) = x-1, g(x) = x - 1. Find (fg)(x)
-
An ice freezer behind a restaurant has a freon leak, releasing 43.21 g of C, H,F,Cl into the air every week. If the leak is not fixed, how many kilograms of fluorine will be released into the air...
-
Kindly discuss the following topic : i . State the importance of decision making ii . Describe the fundamental steps in decision making iii. Apply decision tables in decision making
-
Ella, a portfolio manager, considered several ways to invest USD15 million for one year. The data are as follows: USD interest: 7% per annum (p.a.) GBP interest: 10% p.a. Spot exchange rate:...
-
What are the three types of misstatements that are associated with the occurrence objective for sales?
-
Suppose you won a financial literacy competition and are given FJS10000 to invest, with the condition that investment can be done either in, i) Invest in Unit trust of Fiji or Invest in Fijian...
-
a. Carlys Catering provides meals for parties and special events. You created an Event class for the company. Now, make the following changes to the class: Currently, the class contains a field that...
-
a. Sammys Seashore Supplies rents beach equipment such as kayaks, canoes, beach chairs, and umbrellas to tourists. You created a Rental class for the company. Now, make the following change to the...
-
A structure that allows repeated execution of a block of statements is a ____________. a. Cycle b. Ring c. Loop d. Band
-
Scenario: Yarning Circle and Talking Stick Sarah has recently been employed by Blue Bay Early Learning Centre. Sarah is very proud of having just achieved the Diploma of Children's Services and she...
-
The principal at your school decides to retire, and several well-qualified teachers on the staff apply for the position. Mr. England has been teaching for four years and has his administrator's...
-
Sandi's parents have been divorced since she was five years old. She is now seven. She lives with her mother and visits her father every other weekend. He brings her to school on Monday mornings...
Study smarter with the SolutionInn App