title: JList not showing all the elements read
body: <p>everyone. I have a JList inside a JPanel, which I initialized with the following code:</p>
  
  <pre><code>DefaultListModel lmodel;
  lmodel=new DefaultListModel();
  jList1.setModel(lmodel);
  </code></pre>
  
  <p>JList was created in the Netbeans visual editor and put inside JScrollPane1. When I add or remove a few elements from the model, everything works just fine. Nevertheless, there seems to be a limit to the number of elements the JList can show, which is weirdly set at 294.</p>
  
  <p>I have a method that reads items from a text file, which is pretty standard:</p>
  
  <pre><code>BufferedReader inputStream=new BufferedReader(new FileReader(nomeArquivo));
  String line = inputStream.readLine();
  while (line!=null) {
      int i=line.indexOf("=");
      if (i&gt;0) {
         lmodel.addElement(line);                        
      }
      line = inputStream.readLine();
  }         
  inputStream.close();
  System.out.println("Final list size="+jList1.getModel().getSize());               
  </code></pre>
  
  <p>All trys and catches are in place - this is just a fragment. There is no reading error and everything goes well, with no exceptions.                </p>
  
  <p>When I read a file that contains 400 elements, all those 400 elements are inside the lmodel. I can even save them afterwards (there is a method for that too) and the println at the end of the method gives me the number 400 as read.</p>
  
  <p>Nevertheless, the list never shows more that 294 elements. If I had a number x of elements in the list, only 294-x elements are viewed on screen. </p>
  
  <p>Does anybody know what might be happening?</p>
  
  <p>Thank you in advance for your help.</p>