Repeat Programming Project 2, but make all of the following changes:

• Name the class MemoApplet.
• Create six buttons instead of five, and arrange them as follows:

The buttons are still at the bottom of the GUI (applet), with the text area above them. Hint: Use the GridLayout manager on the button panel.
• When the user saves the text as memo 1, the text area should display Memo 1 saved, and when the user saves the text as memo 2, the text area should display Memo 2 saved. Hint: See Self-Test Exercise 43 of the previous chapter.
• Give the text area a line wrap, so that if more characters are entered than will fit on the line, the extra characters automatically go on the next line.

The applet is most easily written by making changes to the solution to Chapter 13 Programming Project 2 (MemoSaver2).


See the code in MemoAppket.java.

Computer Science & Information Technology

You might also like to view...

A(n) ____________________ selector includes two or more selectors that form a relationship and are separated by white space.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

When a database is accessed using a disconnected mode, all or part of a database table(s) is retrieved and stored in a temporary file on a local machine.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The three primary graphic file formats used in web pages are SWF, JPG, and PNG.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Explain what easing is and how to use it.

What will be an ideal response?

Computer Science & Information Technology