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 164578

Summary: No possibility to suppress [x] on CloseButtonTabbedPane
Product: platform Reporter: Jan Becicka <jbecicka>
Component: Window SystemAssignee: Jan Becicka <jbecicka>
Status: RESOLVED FIXED    
Severity: blocker CC: saubrecht
Priority: P3 Keywords: API, API_REVIEW_FAST
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Suggested patch

Description Jan Becicka 2009-05-06 12:32:53 UTC
There is no possibility to suppress [x] on CloseButtonTabbedPane
Comment 1 Jan Becicka 2009-05-06 12:44:57 UTC
Created attachment 81637 [details]
Suggested patch
Comment 2 Jan Becicka 2009-05-06 12:46:25 UTC
Please review my changes.
Comment 3 Stanislav Aubrecht 2009-05-11 08:27:04 UTC
would be nice to also turn off tab title padding when the close button is suppressed (see add(Component) and
setTitleAt(int,String)
otherwise it looks ok to me
Comment 4 Jan Becicka 2009-05-11 12:51:16 UTC
Thanks
Comment 5 Jan Becicka 2009-05-11 12:51:31 UTC
http://hg.netbeans.org/cdev/rev/d8c30a7fb974
Comment 6 Quality Engineering 2009-05-12 07:43:48 UTC
Integrated into 'main-golden', will be available in build *200905120201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/d8c30a7fb974
User: Jan Becicka <jbecicka@netbeans.org>
Log: #164578: Added option to hide close button