if(item.indexOf(searchString,r)>-1)\r
{\r
resIndex = item.indexOf(searchString,r);\r
+\r
searchResults.add( Integer.toString(seqIndex) );\r
searchResults.add( Integer.toString( resIndex) );\r
searchResults.add( Integer.toString( (resIndex+searchString.length()-1) ) );\r
resIndex++;\r
break;\r
}\r
+\r
+ r=resIndex+1;\r
}\r
}\r
if(!found)\r
for(int i=0; i<searchResults.size(); i++)\r
allResults[i] = Integer.parseInt(searchResults.get(i).toString());\r
\r
+ if (findAll)\r
+ {\r
+ String message = (searchResults.size()/3) + " matches found.";\r
+ JOptionPane.showInternalMessageDialog(this, message, null,\r
+ JOptionPane.INFORMATION_MESSAGE);\r
+ }\r
+\r
+\r
}\r
else\r
{\r
- JOptionPane.showInternalMessageDialog(this, "Finished searching", null,\r
- JOptionPane.INFORMATION_MESSAGE);\r
+ JOptionPane.showInternalMessageDialog(this, "Finished searching", null, JOptionPane.INFORMATION_MESSAGE);\r
resIndex=0;\r
seqIndex=0;\r
}\r