Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4190311

JList returns a strange preferredSize when DefaultListModel has no elements

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • None
    • 1.2.0
    • 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.

       

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: