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 155926 - Unable to customize the individual TopComponent window actions/buttons.
Summary: Unable to customize the individual TopComponent window actions/buttons.
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 5 votes (vote)
Assignee: Stanislav Aubrecht
Depends on: 156693
  Show dependency tree
Reported: 2008-12-22 10:53 UTC by reply2manu
Modified: 2009-02-19 22:53 UTC (History)
3 users (show)

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description reply2manu 2008-12-22 10:53:12 UTC
Why - Need for Enhancement
We have few TopComponent windows in our application and we don't want that user can close(x) one of the TopComponent
window as we wanted it to display always.

Also, wanted to rename the string values of context menu on Editor TopComponent. As of now this context Menu displays
like this:
Close All Documents
Close Other Documents
Close Window
Maximize window
Undock Window

So, I wanted to edit few of those strings and add few other actions to this menu.

The following things I wanted to do:-
1) User should not be able to close a particular TopComponent window i.e Close button should not be visible to user.
2) User should not be able to undock a particulat TopComponent window i.e "Undock Window" option should not be visible
to user and can't be accessed by its shortcut.
3) To customize the popup context menu in individual TopComponents.

What to Enhance
For this, it would be nice if you can provide an API to turn such a thing on/off at will for individual TopComponents
Tabs/Windows handles.

Enhancements Required
1) An API should be provided to turn on/off "Close" & "Minimized" Buttons in individual TopComponents.
2) An API to customize the popup context menu items and their strings in individual TopComponents.
3) An API to add more buttons at the Top(i.e adjacent to close, minimize) of individual TopComponent windows.
4) It would be great if an API is provided to enable/disable popup menus on individual TopComponents & Toolbar.
Comment 1 Stanislav Aubrecht 2009-01-30 15:23:47 UTC
i've integrated api changes for #156693 which allow turning closing, sliding, undocking, dragging and maximization off
for a single topcomponent
if you want more window system customizations, please file separate issues for them, thanks