How to remove items from menu in netBeans platform?

后端 未结 4 726
既然无缘
既然无缘 2021-01-02 03:41

I have module application. When I run it, the main window of that app has quite complex menu. How to remove some items from menu?

4条回答
  •  情话喂你
    2021-01-02 03:44

    In netbeans 8.0 , the layer file is generated when ever a module contains 'configuration type' annonations in java code, for example a module with top component. The generated layer.xml is located at build directory classes/META-INF/generated-layer.xml. However, the generated-layer.xml is not editable. To hide/show menubar / tool bar, click on the module, click other and add XML layer file. Now under the important files you can see XML layer. Expand it. Now expand . Expand the "Menu Bar". Delete the menu bar which you don't want.

提交回复
热议问题