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 179431 - Non closeable toolbars
Summary: Non closeable toolbars
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal with 3 votes (vote)
Assignee: issues@platform
Depends on:
Reported: 2010-01-12 10:32 UTC by aldobrucale
Modified: 2011-07-18 10:21 UTC (History)
0 users

See Also:
Exception Reporter:

Add the "closeable" attribute to Toolbars (9.23 KB, patch)
2010-01-13 07:59 UTC, aldobrucale
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description aldobrucale 2010-01-12 10:32:19 UTC
I got a request from a customer to include a small logo in the user interface of a nb platform based application. The logo should always be visible, and it should not be possible for the user to hide it. 

A small label in the toolbar would be perfect (I have aligned it on the right) but the toolbar popup menu allows the user to hide it. I would like to be able to specify in layer.xml that a toolbar should not be closeable by the user.
Comment 1 aldobrucale 2010-01-13 07:59:04 UTC
Created attachment 93254 [details]
Add the "closeable" attribute to Toolbars

This patch adds the "closeable" attribute to the toolbar configuration files (e.g. Standard.xml). The attribute is then used in ToolbarConfiguration.fillToolbarsMenu().
Comment 2 andreagualano 2011-07-18 10:21:36 UTC
I have been including this patch in my application for quite a long time.
Is there any chance of getting it integrated?
Is there any work (changes/enhancements) that can be done on this patch to improve its chances of being integrated?
Or is there any workaround to achieve the same result (a toolbar that the user cannot hide) without patching the platform?