private void updateStatusLabel(){
  String text="";
  if (searchResult != null) {
switch (searchResult.size()) {
case 0:
      text="(0 of 0)";
    break;
case 1:
  text="(1 of 1)";
break;
default :
text="(" + (searchResultIndex + 1) + " of "+ searchResult.size()+ ")";
}
}
statusText.setText(text);
}

private void updateStatusLabel ( ) { String text = "" ; if ( searchResult != null ) { switch ( searchResult . size ( ) ) { case 0 : text = "(0 of 0)" ; break ; case 1 : text = "(1 of 1)" ; break ; default : text = "(" + ( searchResultIndex + 1 ) + " of " + searchResult . size ( ) + ")" ; } } statusText . setText ( text ) ; }
updates the status label to display the current index and the total count of the search result .
