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é