Java File Reading Problem
<p>I am trying to read my highscore.txt file so that I can show it on my game's highscores menu. 
The content of my highscore.txt is SCORE and NAME.  Example:</p>

<pre><code>   150 John
   100 Charice
   10 May
</code></pre>

<p>So I write the following code to read the file in a text area but the file cannot be read. My code is as follows:</p>

<pre><code>public HighScores(JFrame owner) {
        super(owner, true);
        initComponents();
        setSize(500, 500);
        setLocation(300, 120);
        getContentPane().setBackground(Color.getHSBColor(204, 204, 255));

        File fIn = new File("highscores.txt");
        if (!fIn.exists()) {
            jTextArea1.setText("No high scores recorded!");
        } else {
            ArrayList v = new ArrayList();
            try {
                BufferedReader br = new BufferedReader(new FileReader(fIn));
                String s = br.readLine();
                while (s != null) {
                    s = s.substring(2);
                    v.add(s);
                    s = br.readLine();
                }

                br.close();
            } catch (IOException ioe) {
                JOptionPane.showMessageDialog(null, "Couldn't read high scores file");
            }

            // list to display high scores
            JList jlScores = new JList(v);  //there's a problem here. I don't know why
            jTextArea1.add(jlScores, BorderLayout.CENTER);

        }
    }
</code></pre>

<p>What am i doing wrong??? How can I make this work>. You're help would be highly appreciated. Thank you in advance.</p>
