AppleSInterfaceBuilder

We need an interactive way to edit menus. In Apple's !InterfaceBuilder there is a separate window with a menu in it. All editing is done through direct manipulation. We could have a menu as part of the form being edited if that form is a Frame. We could also have a form which is just the menu. The menu looks and operates just like a normal menu with a few exceptions:

  • Menus open by clicking but they stay open, rather than closing when the mouse is released. To close the menu you must click a second time.
  • You can change the selected menu item with the keyboard but not by dragging the mouse. When you drag with the mouse instead of changing the selection and opening menus it will actually drag the menu or menu item. This is how you rearrange items in the menu.
  • New menus can be created by dragging a menu item or a complete prefab menu to the menubar from the palette. There are prefab menus for the application, file, edit, text, window, find, and font menus.
  • You can edit the text of a menu item by double clicking. It will create a textfield that you type into. Just like editing the text of labels in matisse. You can edit the keyboard shortcut in a similar fashion.


See screenshots below:

We might be able to implement similar functionality by using subclasses of jmenu and jmenu item, or with a glasspane to filter the events, or hacked plaf classes. probably a combination of the three.

We might be able to implement similar functionality by using subclasses of jmenu and jmenu item, or with a glasspane to filter the events, or hacked plaf classes. probably a combination of the three.


  • Interface Builder's menu palette:

http://wiki.netbeans.org/wiki/attach/AppleSInterfaceBuilder/InterfaceBuilderScreenSnapz001_AppleSInterfaceBuilder.png

  • Opening a Menu:

http://wiki.netbeans.org/wiki/attach/AppleSInterfaceBuilder/InterfaceBuilderScreenSnapz002_AppleSInterfaceBuilder.png

  • Editing a Menu's text:

http://wiki.netbeans.org/wiki/attach/AppleSInterfaceBuilder/InterfaceBuilderScreenSnapz003_AppleSInterfaceBuilder.png

  • Moving a menu by dragging:

http://wiki.netbeans.org/wiki/attach/AppleSInterfaceBuilder/InterfaceBuilderScreenSnapz004_AppleSInterfaceBuilder.png

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo