|
|
|
Magercise 3 PrerequisitesUsing Menus, Toolbars, and Tool Tips - from Part I Skeleton CodeFormatter.java
In this magercise, you will explore the
Working from the skeleton code, you'll setup the Tasks:
Create an instance variable
Create a
Remember to save the references to the
The "Load Text" menu item under the File menu calls the
For the Color menu, add a
The
For each of the color menu items, add an
The
For the Custom Color menu item, you need to complete the
Most of the Font change support menu is already done for you. The only two
menu items that need action listeners are the Bold and Italic entries. Add
an
Like the
For the Image File menu item, you need to complete the
Save everything and compile the program. Then run it to see the results. Load a file and change its display style. You can save the document and reload the document as a serializable object. Also, try to add an image to the document.
Where help exists, the task numbers above are linked to the step-by-step help page. SolutionThe following Java source file represents a solution to this Magercise:Formatter.java Magercise 4Short CourseAbout This Short CourseCopyright © 1998-1999 MageLang Institute. All Rights Reserved. |
|
|||
|
|
Questions?
29-Mar-99 Copyright © 1996-1999 Sun Microsystems Inc. All Rights Reserved. Legal Terms. Privacy Policy. |
|