Taskbar-like container

  • Thread starter =?iso-8859-1?q?Andr=E9_Wagner?=
  • Start date
?

=?iso-8859-1?q?Andr=E9_Wagner?=

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é
 
A

Andrew Thompson

André Wagner wrote:
...
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, ...

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

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

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.aspx/java-general/200706/1
 
?

=?iso-8859-1?q?Andr=E9_Wagner?=

(java.awt.)GridLayout

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

Thank you very much!

André
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,797
Messages
2,569,647
Members
45,374
Latest member
VernitaBer

Latest Threads

Top