Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / April 2005

Tip: Looking for answers? Try searching our database.

Multiple docking toolbars

Thread view: 
David Alex Lamb - 18 Apr 2005 03:14 GMT
In another thread that bogged down with flammage, the OP was asking for a
simple piece of common GUI functionality: multiple docking toolbars.  I know
how to have a single docking toolbar but have never had to learn how to get
multiples.  Anybody able to answer this fairly narrow technical question?
Signature

"Yo' ideas need to be thinked befo' they are say'd" - Ian Lamb, age 3.5
http://www.cs.queensu.ca/~dalamb/   qucis->cs to reply (it's a long story...)

Arnaud Berger - 18 Apr 2005 08:03 GMT
Hi,

Maybe I don't get the question, but what about adding a toolbar at
BorderLayout.NORTH, another one at
BorderLayout.SOUTH and so on ... ?

You may also have a panel with a BorderLayout, containing at
BorderLayout.CENTER, another panel with a BorderLayout, which would let you
add two toolbars at north, east , west and south (well at least, the visual
effect will look like that).

Regards,

Arnaud

> In another thread that bogged down with flammage, the OP was asking for a
> simple piece of common GUI functionality: multiple docking toolbars.  I know
[quoted text clipped - 3 lines]
> "Yo' ideas need to be thinked befo' they are say'd" - Ian Lamb, age 3.5
> http://www.cs.queensu.ca/~dalamb/   qucis->cs to reply (it's a long story...)
David Alex Lamb - 18 Apr 2005 14:46 GMT
>> In another thread that bogged down with flammage, the OP was asking for a
>> simple piece of common GUI functionality: multiple docking toolbars.  I
[quoted text clipped - 15 lines]
>add two toolbars at north, east , west and south (well at least, the visual
>effect will look like that).

Thanks.  I knew about using BorderLayout for docking toolbars, but didn't
realize you could have more than one that moved around to the 4 edges.
The question was about having multiple toolbars along one edge, sometimes in
more than one row;  a lot of normal Windows programs do that, e.g. MS Word,
Adobe Acrobat Reader.
Signature

"Yo' ideas need to be thinked befo' they are say'd" - Ian Lamb, age 3.5
http://www.cs.queensu.ca/~dalamb/   qucis->cs to reply (it's a long story...)

Steve W. Jackson - 18 Apr 2005 16:39 GMT
> >> In another thread that bogged down with flammage, the OP was asking for a
> >> simple piece of common GUI functionality: multiple docking toolbars.  I
[quoted text clipped - 21 lines]
> more than one row;  a lot of normal Windows programs do that, e.g. MS Word,
> Adobe Acrobat Reader.

I've got an app that displays two toolbars by default (one at the top,
the other at left), and may have a third and even a fourth.  All are set
to allow floating, so it's possible to have any or all of them moved to
a side where one already resides.

The tricky part, I found, is mainly dependent on what's on those
toolbars.  I have one that defaults to a vertical display at left and
has two columns of buttons.  It took far more work than I liked to be
able to ensure that those columns of buttons became a proper pair of
button rows when docked at top or bottom (that is, when the orientation
changed).  But the one that displays at the top, horizontally, creates
appearance issues if moved to a vertical location because one of the
items on it is a slider -- thus making it wider (when vertical) than I'd
like and having a less than ideal appearance.

But it does work.  And I can move them around freely.  The trick was
that I had to put together multiple JPanels with BorderLayout used and
designated locations for the default toolbar locations in certain
panels.  A little care is needed, but it's certainly doable.

= Steve =
Signature

Steve W. Jackson
Montgomery, Alabama



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.