Details
-
Bug
-
Resolution: Fixed
-
P4
-
8
-
b05
Description
The documentation for JList.getPreferredScrollableViewportSize() state:
“If the model isn't empty... The height is the fixedCellHeight multiplied by the visibleRowCount, plus the list's vertical insets.”
Here fixedCellHeight must be replaced with “height of the first cell”.
“If the model isn't empty... The height is the fixedCellHeight multiplied by the visibleRowCount, plus the list's vertical insets.”
Here fixedCellHeight must be replaced with “height of the first cell”.
Attachments
Issue Links
- csr for
-
JDK-8198822 JList.getPreferredScrollableViewportSize(): fix mistake in doc for height calc
- Closed
- relates to
-
JDK-8166205 JList within JScrollPane returns unexpected preferred size
- Closed