XEdit edit2 = (XEdit)findComponent( "edit2" );
XList ordered = (XList)findComponent( "ordered" );
if ( edit2.getText().equals( "" ) || edit2.getText().equals( "Item Index" ) ) {
ordered.oAddElement( edit.getText() );
} else {
ordered.oInsertElement( edit.getText(), Integer.parseInt( edit2.getText() ) );
}
}
public void removeItemOList() {
XList ordered = (XList)findComponent( obj, "ordered" );