Adding a Menu Component to a Frame

Since a non-popup menu can only be attached to container, such as a JFrame or a JDialog, you must first open or a container file. You can open one in one of the following ways:

To add a menu component to the UI:

  1. Right-click the UI frame file in the Navigator and choose Open.
  2. Select your main UI frame in the Java Visual Editor or in the Structure window.
  3. Click a menu component on the Component Palette and drop it anywhere in the Java Visual Editor. You can choose either a menu bar or a popup menu.

    Alternatively, you can open a file that already contains a menu component.

At this point, nothing is visible on the UI. The added menu component is displayed in the Structure window and opens in the Menu Editor.


About Menu Terminology
About Menu Components
About the Menu Editor