Zerg
May 9th, 2000, 04:09 AM
hi,
all i want to do is just to get the selected content in List A and move them to List B
and i end up this piece of code b4 i can compile successfully.
int[] selectedData ;
Object[] objData ;
String cmd = e.getActionCommand();
if( cmd.equals( "hide" ) == true )
{
selectedData = regtrList.getSelectedIndices() ;
objData = new Object[selectedData.length] ;
for (int i=0; i<selectedData.length; i++)
objData[i] = Integer.toString(selectedData[i]) ;
filterList.setListData(objData) ;
}
any1 dare to tell me what stupid mistake i made here ?
thank u
Signature (up to 100 characters) You may use Markup in your signature
all i want to do is just to get the selected content in List A and move them to List B
and i end up this piece of code b4 i can compile successfully.
int[] selectedData ;
Object[] objData ;
String cmd = e.getActionCommand();
if( cmd.equals( "hide" ) == true )
{
selectedData = regtrList.getSelectedIndices() ;
objData = new Object[selectedData.length] ;
for (int i=0; i<selectedData.length; i++)
objData[i] = Integer.toString(selectedData[i]) ;
filterList.setListData(objData) ;
}
any1 dare to tell me what stupid mistake i made here ?
thank u
Signature (up to 100 characters) You may use Markup in your signature