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

List : size of listbox depends on when pack() is called

XMLWordPrintable

    • x86
    • windows_nt

      This bug is exactly the same as 4092373/4067355, except that
      those bugs were Solaris only, and this bug is Windows only.

      A test case for this bug can be found at
      /test/java/awt/List/ListPackTest

      When run, the listbox is only sized to show 3 elements even though 4 rows were
      called for in the constructor. (Note the presence of the vertical scrollbar
      in the TextArea). If the pack() call is moved to the end of the ListDialog
      constructor, it works like it should (No scrollbar is needed). (Both cases
      are shown in the test case given above).

      This bug appears in JDK1.2fcs build C.

            Unassigned Unassigned
            ehawkessunw Eric Hawkes (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: