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 - Complete removal of menubar (and toolbar)
Summary: Complete removal of menubar (and toolbar)
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: Other Windows XP
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords:
Depends on:
Blocks: 134670
  Show dependency tree
 
Reported: 2008-05-01 09:25 UTC by ghartmann
Modified: 2013-08-25 12:13 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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