我正在将“Java Swing”代码从“Java Visual Cafe”JDK1.2 迁移到“Eclipse SDK6”。在 Visual Cafe 它的代码是这样的:
public Sample extends JPanel(){
.....
package com.symantec.itools.javax.swing.JButtonGroupPanel bgAcc = new com.symantec.itools.javax.swing.JButtonGroupPanel();
....
bgAcc.setBorder(tbAcc); //tbAcc is titledBorder component type
..
bgAcc.setBounds(0,108,400,76);
...
bgAcc.add(bgLb); // bgLb is JLabel component type
..
bgAcc.add(button1, new GridBagConstraints(...));
..
}
谁能建议我如何在 Eclipse SDK6 中替换此代码?我在“Swing”中找不到“ButtonGroup”的这些方法。