(You should do Programming Project 2 before doing this one.) Write a GUI, using Swing, that behaves as follows: When the program is run, a window appears and asks the user for the desired number of lines and characters per line for the memo saver. If the user clicks the close-window button, the program ends. More typically, the user enters these two numbers in two text fields. A Continue button is available that, if clicked, causes the window to disappear and another window to open. This second window is just like the memo saver in Programming Project 2, except that the text area has the number of lines and characters per line specified by the user in the previous window.
This Project requires a few new techniques in addition to those in Project 2. JTextField is used for the text input boxes (instead of JTextArea) since the input will be on a single line, the original window must be hidden when the memo window is created, and consideration must be given to what happens if nothing is entered in the text boxes when “Continue” is clicked. Note that the window size may need to be adjusted, depending on the monitor resolution, to show all the window’s objects completely. Also note that the solution does not include code to detect errors in data entry by catching NumberFormatException exceptions.
See the code in MemoSaver3.java. Uses WindowDestroyer.java.
You might also like to view...
How does FDDI differ from a Token Ring?
a) FDDI uses only one ring; a Token Ring uses two. b) FDDI operates over optical fiber; Token Ring operates over copper wiring. c) Token Rings circulate tokens clockwise; FDDI circulates tokens counterclockwise. d) FDDI is only used in WANs; Token Rings only in LANs.
A Windows 7 feature that allows you to capture screen shots of any object on your screen is the ________
A) Print Screen Tool B) Snipping Tool C) Capture Tool D) Screen Shot Tool
The ____ manipulator included in the cout stream forces each name to be displayed left justified in its designated field width.
a. setiosflags(ios::justified) b. setiosflags(justified::left) c. setiosflags(ios::left) d. setiosflags(ios::right)
Critique the use of software developers and software users as validation testers.
What will be an ideal response?