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.
It would be nice to include an X close button on tabs in the Editor (e.g. selectively - any given mode could decide whether it wants them or not). Less clicks than right clicking and choosing close. Eclipse does this, and it's pretty nice.
Just got notification that 4751 got linked to this as depending on this issue. Don't think they're dependent, although related. Close tabs on the editor is a UI issue for the Editor pane (and possibly all topcomponents that live inside a tabbed UI). A multiple-close file dialog is also useful but a completely seperate issue.
Target milestone -> 3.3.1.
*** Issue 18481 has been marked as a duplicate of this issue. ***
Target milestone -> 3.4
Reassigning to Marek. Marek, please evaluate these enhancements, thanks.
It is clear what to do. I just do not know how to implement it.
*** Issue 11563 has been marked as a duplicate of this issue. ***
A thought as to how this could be implemented, although it is a pretty far reaching change that could potentially introduce bugs - but in the long term provides much more flexibility: What about not using JTabbedPane to contain the TopComponents in the mode (or use it, but provide a tabbed UI that actually has no tabs)? Instead, separate the control which switches what is the current TopComponent from the container for those TopComponents. This would make it much easier to implement a number of things that have been enhancement requests in the past, but were limited by the relative inflexibility of JTabbedPane: - Varying font/color of text on tabs to indicate status - Better pluggability of what kind of control is used to switch between TopComponents in a Mode - Additional embedded controls, such as close buttons It strikes me as a more flexible design to seperate the view (the container) and the controller (the thing which the user interacts with to change TopComponents [well, this is stretching MVC a little]).
Why is this issue's priority going up and down like a yo-yo?
> Why is this issue's priority going up and down like a yo-yo? we are tickering if this issue is high enough in the plan for 3.4. That's why we are playing yo-yo with the prio. See also http://core.netbeans.org/plans/
I set the priority to P4 according the plan. Here are the reasons why it was so low. 1) There is an internal design problem how to implement the feature. It would be possible only subclassing the (Basic)TabbedPaneUI, to draw the close button etc. This I fear would create potential prob when releasing new versions of jdk (the problems we already experienced with ArrowsTabbedPaneUI also old PopupTabbedPaneUI. 2) So I'd rather create RFE for jdk to allow such kinds of tabs. 3) Simpy there are other RFE's which have precedence over this one and therefore should have lower priority. Possible solution will be still to subclass the tabbedPaneUI (which I'd like to avoid) and also submit the RFE for jdk, but that's not clear at the point. Please don't change the priority again. If you think the issue is more important, just vote for it. Thanks Peter
I am assigning this issue to myself. Not saying I'll solve it but I would invest some time into investigating what's possible with Swing.
Created attachment 5214 [details] prototype
committed initial alpha impl into cvs trunk. The feature is disabled by default. To test it one must use the command line arg -J-Dnetbeans.tab.close.button.enabled=true
What about close tab by double click? I am not an UI expert, so I don't know if double click on tab has reserved a special meaning and if it is acceptable by all. Possibly it could be the second option and user could choose between close button, double click or combination of both.
No no no no no no no no.
feature is on by default. To turn it off use -J-Dnetbeans.tab.close.button.enabled=false
Closing because the feature is implemented and working.
verifying
Resolved for 3.4.x or earlier, no new info since then -> closing.