-
Bug
-
Resolution: Unresolved
-
P4
-
1.2.0
-
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.
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.
- relates to
-
JDK-4455492 FontMetrics.getHeight() is rounded up too much
-
- Resolved
-
-
JDK-4092373 size of listbox depends on when pack() is called (solaris)
-
- Closed
-