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.
[dev-200406011800, JDK 1.4.2, Metal L&F] When disabling any toolbar in Main Window then there is space left and toolbars didn't move to fill the space. Toolbars should be somehow elastic to fill the space.
Passing to Marek. I don't know, is mentioned behaviour described as desirable in any spec?
Dusan should toolbars rearrange automatically when some toolbar is hidden?
Dusan should answer Marek's question ;)
Yes, why not to rearrange toolbars (move appropriate toolbars on the row to the left as much as possible) when user hide some toolbar...Is it possible to implement it?
Please don't remove me from CC.
It can have eventually some further effects than just to shift toolbars on the right to the left. It can shift also toolbars from lower toolbars up and eventually hide lower empty toolbar line.
Passing to Standa. Certainly it's possible to implement this, but as this would be big change, I'd recommend to fix this when toolbars are rewritten as a whole, because it makes no sense to try to implement smt bigger into current mess. Stando please link this to toolbar rewrite enh, I can't find it :-)
*** Issue 58607 has been marked as a duplicate of this issue. ***
*** Issue 58959 has been marked as a duplicate of this issue. ***
*** Issue 61538 has been marked as a duplicate of this issue. ***
I'm raising priority of this, becouse there have been three duplicates of this. It's also a year old issue and nothing has been done about it.
*** Issue 58958 has been marked as a duplicate of this issue. ***
fixed - please open a new issue if you think the new toolbar behavior is not good enough. Checking in src/org/netbeans/core/windows/view/ui/toolbars/ToolbarConfiguration.java; /cvs/core/windows/src/org/netbeans/core/windows/view/ui/toolbars/ToolbarConfiguration.java,v <-- ToolbarConfiguration.java new revision: 1.31; previous revision: 1.30 done Checking in src/org/netbeans/core/windows/view/ui/toolbars/ToolbarConstraints.java; /cvs/core/windows/src/org/netbeans/core/windows/view/ui/toolbars/ToolbarConstraints.java,v <-- ToolbarConstraints.java new revision: 1.4; previous revision: 1.3 done Checking in src/org/netbeans/core/windows/view/ui/toolbars/ToolbarRow.java; /cvs/core/windows/src/org/netbeans/core/windows/view/ui/toolbars/ToolbarRow.java,v <-- ToolbarRow.java new revision: 1.5; previous revision: 1.4 done
Verified in dev-200509211800.
There is a public method of org.openide.awt.Toolbar: setVisible(boolean), I try to use this method to hide/show toolbar dynamically (any better approach available?), and it works in hiding toolbar, but the context menu still shows this toolbar availabe, and the toolbar in main window leave the space not be filled.
I've got it. I should pre-define a toolbar Configuration, and set the it via: ToolbarPool.getDefault().setConfiguration(String name) I'll add this to http://wiki.java.net/bin/view/Netbeans/NetBeansDeveloperFAQ Please ignore it, thanks.
hongweid, does it mean you're happy with the current implementation and i can close this issue as fixed?
per last comment - it's fixed
verified in: NetBeans IDE Dev (Build 200701011900) 1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105 Linux version 2.6.17-10-generic running on i386 en_US (nb); UTF-8