title: JList with JScrollPane and prototype cell value wraps element names (replaces with dots instead of showing horizontal scrollbar), why?
body: <p>I've got a Jlist inside a JScrollPane and I've set a prototype value so that it doesn't have to calculate the width for big lists, but just uses this default width.</p>
  
  <p>Now, the problem is that the Jlist is for some reason replacing the end of an element with dots (...) so that a horizontal scrollbar will never be shown.</p>
  
  <p>How do I disable with "wrapping"? So that long elements are not being replaced with dots if they are wider than the Jlist's width?</p>
  
  <p>I've reproduced the issue in a small example application. Please run it if you don't understand what I mean:</p>
  
  <pre><code>import javax.swing.*;
  import java.awt.*;
  
  public class Test
  {
      //window
      private static final int windowWidth = 450;
      private static final int windowHeight = 500;
  
      //components
      private JFrame frame;
      private JList classesList;
      private DefaultListModel classesListModel;
  
      public Test()
      {
          load();
      }
  
      private void load()
      {   
          //create window
          frame = new JFrame("Test");
          frame.setSize(windowWidth, windowHeight);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setUndecorated(true);
          frame.getRootPane().setWindowDecorationStyle(JRootPane.PLAIN_DIALOG);
  
          //classes list
          classesListModel = new DefaultListModel();
          classesList = new JList(classesListModel);
          classesList.setPrototypeCellValue("prototype value");
          classesList.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
          classesList.setVisibleRowCount(20);
          JScrollPane scrollClasses = new JScrollPane(classesList, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);     
  
          for (int i = 0; i &lt; 200; i++)
          {
              classesListModel.addElement("this is a long string, does not fit in width");
          }
  
          //panel
          JPanel drawingArea = new JPanel();
          drawingArea.setBackground(Color.white);
  
          drawingArea.add(scrollClasses);
          frame.add(drawingArea);
  
          //set visible
          frame.setVisible(true);
      }
  }
  </code></pre>
  
  <p>Even if you force horizontal scrollbar, you still won't be able to scroll because the element is actually not wider than the width because of the dot (...) wrapping.</p>
  
  <p>Thanks in advance.</p>