This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 134319

Summary: Complete removal of menubar (and toolbar)
Product: platform Reporter: ghartmann <ghartmann>
Component: Window SystemAssignee: issues@platform <issues>
Status: RESOLVED WORKSFORME    
Severity: blocker CC: pchytil
Priority: P3    
Version: 6.x   
Hardware: Other   
OS: Windows XP   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 134670    

Description ghartmann 2008-05-01 09:25:15 UTC
There should be a way to remove the menubar completely. My application which I want to port to the netbeans platform 
uses its own menu system (outlook-like JXTaskPane from swingx) and I don't need a menubar.

Currently the toolbar can be removed by the property "netbeans.winsys.no_toolbars".

The most intuitive way to realize this would be to suppress the menubar or toolbar if no folder "Menu" or "Toolbars" is 
available. So I can remove (hide) the folder "Menu" from layer.xml and no menubar will be created. Same should be true 
for toolbars. The property is not a very nice solution.

See org.netbeans.core.windows.view.ui.MainWindow where menubar and toolbar will be created.

Product Version: NetBeans IDE 6.1 (Build 200804211638)
Comment 1 Petr Chytil 2008-05-05 07:28:59 UTC
reassigning to openide/window system
Comment 2 markiewb 2013-08-25 12:13:06 UTC
Use

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE filesystem PUBLIC 
    "-//NetBeans//DTD Filesystem 1.2//EN" 
    "http://www.netbeans.org/dtds/filesystem-1_2.dtd">
<filesystem>
    <folder name="Menu_hidden"/>
    <file name="Toolbars_hidden"/>
</filesystem>

See https://blogs.oracle.com/geertjan/entry/menus_and_toolbars_are_optional