26.7.10

Menu Bar

  • The menu bar of an application based on the NetBeans Platform is created by the NetBeans Platform via the System Filesystem.

 

  • Creating and Adding Menus and Menu Entries
    • Creating an action class for a menu entry
    • Adding a menu entry in the layer file
    • Creating a submenu
  • Inserting Separators
  • Hiding Existing Menu Entries
    • Simply use the layer tree
      • Creating a Custom Menu Bar
      • Important files –> XML Layer –> <this layer in context>
    • Use the NetBeans APIs
      • The Data Systems API
        • Provides the MenuBar class, which is a subclass of JMenuBar, and has the ability to create its content from a DataFolder object.
          • Create a DataFolder
          • Access the System Filesystem via method getDefaultFileSystem()
          • findFolder()

No comments: