Read this code VE why not support it? [message #142345] |
Fri, 26 October 2007 02:33 |
Eclipse User |
|
|
|
Originally posted by: caye5200.yahoo.com.cn
hello,
private JRadioButton[] jRBArray=null;
private void initialize() {
this.add(getJRadioButtonGroup(), null);
}
public JRadioButton[] getJRadioButtonGroup(){
if(jRBArray==null)
{
jRBArray=new JRadioButton[2];
jRBArray[0]== new JRadioButton();
jRBArray[0]=.setBounds(new Rectangle(264, 118, 21, 21));
jRBArray[1]== new JRadioButton();
jRBArray[1]=.setBounds(new Rectangle(264, 168, 21, 21));
}
return jRBArray;
}
My Container extends Container and add following method ,look :
public void add(Component[] arg ,Object arg1)
{
for(int i=0;i<arg.length;i++)
{
this.add(arg[i], arg1);
}
}
VE why not support it?
|
|
|
Powered by
FUDForum. Page generated in 0.02917 seconds