gtl*_*wig 3 java swing label netbeans jradiobutton
我想在Netbeans上的buttonGroup上定义jRadioButtons的标签位置,以便标签位于其radioButton下.可以吗?
使用JRadioButton#setText()带setVerticalTextPosition(SwingConstants.BOTTOM).
JRadioButton jrb = new JRadioButton();
jrb.setText("Label");
jrb.setVerticalTextPosition(JRadioButton.BOTTOM);
jrb.setHorizontalTextPosition(JRadioButton.CENTER);
Run Code Online (Sandbox Code Playgroud)
