public void addItemUList() {
XEdit edit4 = (XEdit)findComponent( obj, "edit4" );
XEdit edit5 = (XEdit)findComponent( "edit5" );
XList unordered = (XList)findComponent( "unordered" );
if ( edit5.getText().equals( "" ) || edit5.getText().equals( "Item Index" ) ) {
unordered.uAddElement( edit4.getText() );
} else {
unordered.uInsertElement( edit4.getText(), Integer.parseInt( edit5.getText() ) );
}
}