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 30545 - Suppress SystemMenu from NbTitlePane
Summary: Suppress SystemMenu from NbTitlePane
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: Sun SunOS
: P1 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: T9Y
Depends on:
Blocks:
 
Reported: 2003-01-31 13:01 UTC by Jiri Skrivanek
Modified: 2008-12-23 09:20 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Binary core patch (3.38 KB, application/octet-stream)
2003-01-31 14:51 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Skrivanek 2003-01-31 13:01:34 UTC
Please, suppress creating of SystemMenu in
NbTitlePane by overriding of assembleSystemMenu()
or appropriate method. It is created by default in
BasicInternalFrameTitlePane.

Marking P1 because it blocks some QA tests. Not
serious for regular users.
Comment 1 _ tboudreau 2003-01-31 14:50:35 UTC
I'm thinking it would have been better if I hadn't gone back to 
subclassing BasicInternalFrameTitlePane at your request :-)  Painting
and layout code in BasicInternalFrameTitlePane both expect the
menu to be non-null.

Attaching a binary patch which creates a dummy menu and never
adds it to anything (it will only be used by the layout), and
overrides all uses of it (except rewriting the layout manager
the title pane uses).  Let me know if it solves the problem.
Comment 2 _ tboudreau 2003-01-31 14:51:39 UTC
Created attachment 8750 [details]
Binary core patch
Comment 3 _ tboudreau 2003-01-31 16:38:11 UTC
As it does no harm (and also addresses another issue), I've checked
in the fix for this.  The menu is no longer added to anything, so
your problem should be solved.  Reopen or file another issue if you
have further problems with this component.
Comment 4 Jiri Skrivanek 2003-02-03 06:40:55 UTC
Thank you for the quick response. It works well.