I have eight JToggleButton
s in a MigLayout. Based on the state of the button, the text will change. The problem is that one state's text is larger than the other, and it looks weird and unprofessional when the whole column shifts around due to growing and shrinking. Is there any way to have the buttons fill the space given to them when the form size is changed, but stay the same size no matter what the text is?
The current parameters for the buttons are: cell X Y,growx
where X and Y specify the cell coordinates, and the parameters for the columns are [grow,center]
.
I figured it out, the new cell constraints are as follows:
cell X Y,growx,width 12.5%
where X and Y are cell coordinates