JList returns a strange preferredSize when DefaultListModel has no elements

XMLWordPrintable

    • Type: Bug
    • Resolution: Not an Issue
    • Priority: P2
    • None
    • Affects Version/s: 1.2.0
    • Component/s: client-libs
    • None

      Swing 1.1b3, JDK1.1.7
      ---------------------
      Using JList with an empty DefaultListModel will return a preferred size that is larger than most elements. Since I'm using all layout managers in my code, it causes a resize of the ui which is unjustified.

       

            Assignee:
            Swingtraq Swingtraq (Inactive)
            Reporter:
            Mark Davidson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: