Can I fix the width of JRadioButton?

Posted by Roman on Stack Overflow See other posts from Stack Overflow or by Roman
Published on 2010-03-29T14:08:43Z Indexed on 2010/03/29 14:13 UTC
Read the original article Hit count: 340

Filed under:
|
|
|
|

I have sever JPanels which have to be ordered vertically. For that I want to fix the width of the JPanels. Because if they are too short in comparison with the windows width, they will go horizontally (one after another) and I do not want it. At the moment the width of the JPanel is not constant because the width of the JRadioButton (included into JPabel) is not constant. How can I make the width of the JRadioButton constant? At the moment it is not constant because of the label (which can be different).

© Stack Overflow or respective owner

Related posts about java

Related posts about swing