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);
可是界面上 就显示一个 单选按钮 求解决办法