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...
-
Para desarrollar la estrategia de promocin para su plan de marketing, siga los pasos que se sugieren en la fase de planificacin del proceso de toma de decisiones para la promocin de la figura 17-6. 1...
-
E14.1. An SF2 Forecast and a Simple Valuation (Easy) An analyst calculates residual operating income of $35.7 million from financial statements for 2009, using a required return for operations of 10...
-
Net present value , Internal Rate of Return, Sensitivity Analysis. Francesca Freed wants a Burg-N- Fry franchise. The buy-in is $500,000. Burg-N-Fry headquarters tells Francesca that typical annual...
-
[ The following information applies to the questions displayed below ] A company began January with 7 , 0 0 0 units of its principal product. The cost of each unit is $ 6 Inventory transactions for...
-
You want to buy a new sports coupe for $84,500, and the finance office at the dealership has quoted you an APR of 4.7 percent for a 60-month loan to buy the car. What will your monthly payments be?...
-
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,...
-
What are the advantages of having a process spread that is less than the specification spread? What should be the value of Cp be in this situation? Could Cpk be < 1 here?
-
Q1. (a) Name the types of reactions that organic compounds undergo (b) Differentiate between (i) electrophile and nucleophile
-
CH4 Br, Ligtht Q2. (a) CH3Br + HBr Propose a mechanism for the reaction; indicating initiation, propagation and termination.
-
Q4. Complete the following reactions by drawing the structure(s) of the product(s) formed.
-
1. Why did the Iconoclast emperors believe that using images in worship was wrong? 2. How are recent examples of iconoclasm similar to those of the early medieval period? 3. Why is iconoclasm a...
-
1. Difference Between Essential and Non-Essential Nutrients 2. what is Conditionally Essential Nutrients? explain with examples
-
Compute the maturity value for a $350 promissory note issued on October 30, 2022, at 4.5% for 90 days.
-
Portal Manufacturing has total fixed costs of $520,000. A unit of product sells for $15 and variable costs per unit are $11. a). Prepare a contribution margin income statement showing predicted net...
-
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
-
Which of the following statements is not true regarding the $500 credit for dependent other than a qualifying child credit. Cannot be claimed on the same tax return if the child tax credit is also...
-
Grind Co. is considering replacing an existing machine. The new machine is expected to reduce labor costs by $127,000 per year for 5 years. Depreciation on the new machine is $57,000 compared with...
-
If John invested $20,000 in a stock paying annual qualifying dividends equal to 4% of his investment, what would the value of his investment be 5 years from now? Assume Johns marginal ordinary tax...
Study smarter with the SolutionInn App