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 44160 - Disabling toolbar doesn't move the rest of toolbars
Summary: Disabling toolbar doesn't move the rest of toolbars
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Stanislav Aubrecht
URL:
Keywords: UI
: 58607 58959 61538 (view as bug list)
Depends on: 42146
Blocks: 25396
  Show dependency tree
 
Reported: 2004-06-02 10:41 UTC by Milan Kubec
Modified: 2008-12-22 14:48 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milan Kubec 2004-06-02 10:41:46 UTC
[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.
Comment 1 David Simonek 2004-06-14 15:17:34 UTC
Passing to Marek. I don't know, is mentioned behaviour described as
desirable in any spec?
Comment 2 mslama 2004-06-18 13:46:07 UTC
Dusan should toolbars rearrange automatically when some toolbar is hidden?
Comment 3 Marian Mirilovic 2004-12-21 09:12:30 UTC
Dusan should answer Marek's question ;)
Comment 4 dpavlica 2005-03-18 17:50:39 UTC
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?
Comment 5 jrojcek 2005-03-18 18:05:52 UTC
Please don't remove me from CC.
Comment 6 mslama 2005-03-21 07:54:50 UTC
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. 
Comment 7 David Simonek 2005-04-25 17:03:38 UTC
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 :-)
Comment 8 Stanislav Aubrecht 2005-05-09 15:03:50 UTC
*** Issue 58607 has been marked as a duplicate of this issue. ***
Comment 9 Stanislav Aubrecht 2005-05-18 08:51:27 UTC
*** Issue 58959 has been marked as a duplicate of this issue. ***
Comment 10 Max Sauer 2005-08-09 16:33:41 UTC
*** Issue 61538 has been marked as a duplicate of this issue. ***
Comment 11 Max Sauer 2005-08-09 16:37:59 UTC
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.
Comment 12 Stanislav Aubrecht 2005-08-22 10:42:41 UTC
*** Issue 58958 has been marked as a duplicate of this issue. ***
Comment 13 Stanislav Aubrecht 2005-08-30 10:13:21 UTC
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
Comment 14 Milan Kubec 2005-09-22 13:53:36 UTC
Verified in dev-200509211800.
Comment 15 hongweid 2006-04-16 19:31:00 UTC
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.
Comment 16 hongweid 2006-04-20 18:26:08 UTC
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.
Comment 17 Stanislav Aubrecht 2006-04-21 10:49:22 UTC
hongweid, does it mean you're happy with the current implementation and i can
close this issue as fixed?
Comment 18 Marian Mirilovic 2006-05-12 07:47:44 UTC
per last comment - it's fixed
Comment 19 Petr Chytil 2007-01-03 15:21:42 UTC
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