<Swing Dev> [11] RFR JDK-8198777: JList.getPreferredScrollableViewportSize(): fix mistake in doc for height calc
Alexey Ivanov
alexey.ivanov at oracle.com
Wed Feb 28 21:39:57 UTC 2018
Hello,
Could you please review the fix for jdk11?
bug: https://bugs.openjdk.java.net/browse/JDK-8198777
webrev: http://cr.openjdk.java.net/~aivanov/8198777/webrev.0/
csr: https://bugs.openjdk.java.net/browse/JDK-8198822
It is a small fix to documentation of
JList.getPreferredScrollableViewportSize().
If either fixedCellWidth or fixedCellHeight are not set and the model
isn't empty, heuristics are used. The height is based one the height of
the first cell rather than fixedCellHeight.
Regards,
Alexey
More information about the swing-dev
mailing list