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 77323 - TopComponents without tabs
Summary: TopComponents without tabs
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: David Simonek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-02 16:19 UTC by Geertjan Wielenga
Modified: 2008-12-22 12:11 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 Geertjan Wielenga 2006-06-02 16:19:22 UTC
Not every scenario that makes use of topcomponents has multiple topcomponents. 
If there is only one topcomponent, the tab isn't necessary and it should be 
possible to exclude it. Also because it is closeable.
Comment 1 Geertjan Wielenga 2006-06-02 16:59:40 UTC
A user comment: "I've been trying to push to use the NB platform, and everytime 
I show a sample, the first thing that is asked is, do you have to have that tab 
there, it just takes up space and looks weird."
<p>See the comments at the end of this blog entry:
<br>http://blogs.sun.com/roller/page/geertjan?
entry=netbeans_platform_also_for_small
Comment 2 _ tboudreau 2006-06-07 16:30:53 UTC
I posted all the source code for how to do this to dev@openide about 3-4 weeks ago.
Comment 3 R Ramos 2006-06-07 18:02:15 UTC
I found the source code. 
I think the most wanted scenario is more like the following:
Many people don't just want to have only one TopComponent at all, but they want
to have one centered TopComponent (at editor mode) without (the upper part of
the) tab and the other TCs (if needed) at other modes with tabs.
The source code provided works the other way round that all tabs but the editor
mode tabs are gone. So maybe you can attach the code for this scenario?
Comment 4 Geertjan Wielenga 2006-06-08 13:08:00 UTC
Use "EditorTabDisplayerUI", instead of "ViewTabDisplayerUI".

Comment 5 Geertjan Wielenga 2007-08-27 18:48:01 UTC
This has been discussed, code posted, also in my blog.