How to make items fill available space in JToolBar?

Posted by Konrad Garus on Stack Overflow See other posts from Stack Overflow or by Konrad Garus
Published on 2010-06-01T13:28:30Z Indexed on 2010/06/01 13:43 UTC
Read the original article Hit count: 256

Filed under:
|

I have a horizontal JToolbar with JToggleButtons. For some reason it is placed in a container that has larger height. My JToggleButtons use only as much space as they need, leaving ugly empty space below and under them. How can I make them fill all available space without setting size arbitrarily?

Similar question: How I can make components fill all horizontal space in a vertical tool bar?

© Stack Overflow or respective owner

Related posts about java

Related posts about swing