The problem can be solved by using myLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
. It works with JLabel
, JButton
and JRadioButton
.
The problem can be solved by using myLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
. It works with JLabel
, JButton
and JRadioButton
.