# Creating a panel with a menu bar

To add a menu bar to your panel, follow these steps:

1. From the File Builder window, click . This opens the Menu Builder. From here you can define the items contained within the menu. You must repeat this step for each menu you want to include in the menu bar. Right-click on any menu item to modify it's properties. For example, you can add an icon or specify short cut keys for a menu item.
2. Create the Java panel to which you want to add the menu bar.
3. From the Panel Builder window, click to open the Menu Bar Editor.
4. From the Menu Bar Editor, click to add the menus you defined in the first step. The Resource value specifies in which PDML file the menu item is defined. To select a different PDML file from the drop down list, the file must be open in the GUI Builder. The Name value specifies the name of the menu to include in the menu bar. To change either of these values, double-click in the appropriate field and select a different PDML file or menu from the drop down list. You can also select an existing tool bar as a menu.
5. Click to preview what the menu bar will look like.

Click here for more things you can do with the GUI Builder.