Java File Reading Problem
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:

       150 John
       100 Charice
       10 May


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:


    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);
    
            }
        }


What am i doing wrong??? How can I make the scores be viewed. You're help would be highly appreciated. Thank you in advance.
Java File Reading Problem
===

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:

       150 John
       100 Charice
       10 May


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:


    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);
    
            }
        }


What am i doing wrong??? How can I make the scores be viewed. You're help would be highly appreciated. Thank you in advance.