All of the changes for this step are made in the FileViewer class. There, you will create a toolbar, add your "Open...", Sava As...", and "Exit" actions to it, and install the toolbar into the application. By setting some more action properties, you can put icons onto the toolbar buttons and supply tooltip text.
exitAction.put(Action.SMALL_ICON, new ImageIcon("Exit24.gif")); exitAction.put(Action.SHORT_DESCRIPTION, "Exit the program");
For the "Open..." action, you should specify the file "Open24.gif" and use "Display text from a file" as the short description. For the "Save As..." action, you should specify the file "Save24.gif" and use "Save text to a file" as the short description.
Thats it for the coding. Now its time to try it out. Recompile the FileViewer class an run the application. You should see a new toolbar with three buttons. They should display icons instead of a name, but otherwise they should work like the menu items. If you are not sure which button is which, look at the "File" menu. It should display the icons along with the name.
When you move the cursor over one of the buttons, after a second or two, the tooltip text should pop up. If all goes well, you are done, done, done.