首页 新闻 会员 周边

这个MainDialog添加 多个JRadioButton 为什么只显示一个 单选按钮

0
[待解决问题]

public class DBUploadDialog extends MainDialog{

private JFileChooser fileChooser = new JFileChooser(".jpg");

private JLabel ipjLabel = new JLabel();
private JTextField ipTField = new JTextField();
JLabel jLabel1 = new JLabel();

private JButton ftpButton = new JButton();
private JTextField ftpDirTField = new JTextField();

private JButton targetButton = new JButton();
private JTextField targetDirTField = new JTextField();


private JRadioButton kaKouSwitchJRadio=new JRadioButton();
private JRadioButton sjsjSwitchRadio=new JRadioButton();
private JRadioButton weifaSwitchRadio=new JRadioButton();
private JRadioButton deviceSwitchRadio=new JRadioButton();

。。。。。。。。

 

add(ftpButton);
add(ftpDirTField);
add(targetButton);
add(targetDirTField);
add(ipjLabel);
add(ipTField);
add(jLabel1);
// 以下是单选按钮 
add(kaKouSwitchJRadio);
add(sjsjSwitchRadio);
add(weifaSwitchRadio);
add(deviceSwitchRadio);

 

可是界面上 就显示一个 单选按钮 求解决办法

询问java1的主页 询问java1 | 初学一级 | 园豆:72
提问于:2013-12-04 09:45
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册