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 / General / June 2007

Tip: Looking for answers? Try searching our database.

Taskbar-like container

Thread view: 
André Wagner - 13 Jun 2007 15:21 GMT
Hello,

I want to write a container that behaves much like Windows taskbar: a
bunch of JButtons will be added and removed during runtime, and
everytime a new JButton is added, the others need the reduce their
size (even if this means cropping the label) to give space to the new
JButton.

I tried all available swing layouts, but none of them seem to do the
trick, so I suppose I have to do it by programming. My question is:
which layout should I use? And: any hints about that?

Regards,

André
Andrew Thompson - 13 Jun 2007 15:28 GMT
...
>I want to write a container that behaves much like Windows taskbar: a
>bunch of JButtons will be added and removed during runtime, and
[quoted text clipped - 3 lines]
>
>I tried all available swing layouts, ...

Most of the layouts are AWT.  

>...but none of them seem to do the
>trick, so I suppose I have to do it by programming. My question is:
>which layout should I use? And: any hints about that?

(java.awt.)GridLayout

Signature

Andrew Thompson
http://www.athompson.info/andrew/

André Wagner - 13 Jun 2007 15:42 GMT
> (java.awt.)GridLayout

It really did the trick! The only one I didn't tested... :|

Thank you very much!

André


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



©2009 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.