Related questions with answers

The unadjusted trial balance of the Manufacturing Equitable at December 31, 2016, the end of its fiscal year, included the following account balances. Manufacturing’s 2016 financial statements were issued on April 1, 2017. Accounts receivable $92,500 Accounts payable 35,000 Bank notes payable 600,000 Mortgage note payable 1,200,000. Other information: a. The bank notes, issued August 1, 2016, are due on July 31, 2017, and pay interest at a rate of 10%, payable at maturity. b. The mortgage note is due on March 1, 2017. Interest at 9% has been paid up to December 31 (assume 9% is a realistic rate). Manufacturing intended at December 31, 2016, to refinance the note on its due date with a new 10-year mortgage note. In fact, on March 1, Manufacturing paid$250,000 in cash on the principal balance and refinanced the remaining $950,000. c. Included in the accounts receivable balance at December 31, 2016, were two subsidiary accounts that had been overpaid and had credit balances totaling$18,000. The accounts were of two major customers who were expected to order more merchandise from Manufacturing and apply the overpayments to those future purchases. d. On November 1, 2016, Manufacturing rented a portion of its factory to a tenant for $30,000 per year, payable in advance. The payment for the 12 months ended October 31, 2017, was received as required and was credited to rent revenue. Required: 1. Prepare any necessary adjusting journal entries at December 31, 2016, pertaining to each item of other information (a–d). 2. Prepare the current and long-term liability sections of the December 31, 2016, balance sheet.

Question

  1. 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.

  2. 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.

Solution

Verified
Answered three weeks ago
Answered three weeks ago
Step 1
1 of 4
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;

public class JEmail extends JFrame implements ActionListener, KeyListener {
    final int WIDTH = 250;
    final int HEIGHT = 400; 

    JTextArea to = new JTextArea("To: ");
    JTextArea subject = new JTextArea("Subject: ");
    JTextArea message = new JTextArea("Message: ");
    //Add thc scroll bar to the Message
    JScrollPane scroll = new JScrollPane(message);
    JButton send = new JButton("Send");
    Container con = getContentPane();
    public JEmail() {
        setSize(WIDTH, HEIGHT);
        con.setLayout(new GridLayout(4,1));
        con.add(to);
        //Make sure the text does not
        // go out of text area bounds
        to.setLineWrap(true);
        con.add(subject);
        subject.setLineWrap(true);
        con.add(scroll);
        message.setLineWrap(true);
        con.add(send);

        to.addKeyListener(this);
        subject.addKeyListener(this);
        send.addActionListener(this);
    }

Create an account to view solutions

Create an account to view solutions

More related questions

1/4

1/7