Now that we've created a basic GUI for our application, let's add a menu structure so that we can close the application easily and view the application's About box.
To complete this recipe, we need to have the
JarViewer project that was created in the Adding components to a form recipe. If you have not completed this recipe, the source code is available with the code download bundle for this chapter.
To add a menu to an application, we need to have the main form of the application open for editing in the design view. We then drag-and-drop a menu bar and menu items from the Palette section onto the form. Let's see how that can be achieved with the following steps:
MainFrame.javafile within ...