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?