I tried working with List view. Its working fine.For selecting a
particular value on the list view and getting its index, I used the
following code snippet.
public ListView<String> jlstDefects ;
public TextField fldDefectName;
private void jltDefectsListItemSelected()
int ndx = jlstDefects.getSelectionModel().getSelectedIndex();
if (ndxJlstDefectSelector == ndx)
ndxJlstDefectSelector = ndx;
String strSelectedDefectName = lstDefectList.getDefect(ndx);
I have assigned the item which I got from the list view to a text field
in my application.
Thanks for the suggestions provided.