title: Populating JComboBox from (large) TextFile
body: <p>I'm creating a personal movie database thingy and i want to populate a combo box with movie titles from IMDB, IMDB releases this information in text files, so i'm trying to populate it from those text files. Ive got it working, but since the text file is VERY large, almost 80 000 rows with a title on every row... it takes way to long to load. </p>
  
  <p>This might be the wrong way to go about doing this, someone knows how to solve it or what I should do?</p>
  
  <p>The code for reading the file and return the String [] for the combo box</p>
  
  <pre><code>public String [] getMoviesFromFile() throws IOException{
  
      BufferedReader input = new BufferedReader(new FileReader(filePath));
      try {
          String line = null;
          while (( line = input.readLine()) != null){
              strings.add(line);
  
                  }
  
      } catch (IOException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
      }
      finally {
          input.close();
      }
  
      String[] lineArray = strings.toArray(new String[]{});
      return lineArray;
  
  }
  </code></pre>