How to search in a string in java
<p>I have a text file that stores as following</p>

<pre><code>FileWriter fw=new FileWriter("Records.txt",true);
PrintWriter pw= new PrintWriter(fw, true);
pw.println(refField.getText()+"\t"+documentPathField.getText()+"\t"
                             + abstractLabelArea.getText()+"\t");
clearField();
pw.close();
</code></pre>

<p>Now I need to make a application that searches based on the value of refField or documentPathField or abstractLabelArea. The choice is made by a JComboBox containing these three items.Then The a value is provided on JTextField and pressing the search Button should initiate the searching and should print the result of search on JList based on that value. </p>

<p>How do I do this?</p>
