# HG changeset patch # User aivanov # Date 1520438932 0 # Node ID 091d7717bf98035e65e1b1dcd51cbdc8aa784d2c # Parent e0b025915be8a2ea2e42fa60796171d4b285f98c 8198777: JList.getPreferredScrollableViewportSize(): fix mistake in doc for height calc Reviewed-by: serb, ssadetsky diff -r e0b025915be8 -r 091d7717bf98 src/java.desktop/share/classes/javax/swing/JList.java --- a/src/java.desktop/share/classes/javax/swing/JList.java Wed Mar 07 14:54:46 2018 +0530 +++ b/src/java.desktop/share/classes/javax/swing/JList.java Wed Mar 07 16:08:52 2018 +0000 @@ -2427,7 +2427,7 @@ *

* If the model isn't empty, the width is the preferred size's width, * typically the width of the widest list element. The height is the - * {@code fixedCellHeight} multiplied by the {@code visibleRowCount}, + * height of the cell with index 0 multiplied by the {@code visibleRowCount}, * plus the list's vertical insets. *

* {@code VERTICAL_WRAP} or {@code HORIZONTAL_WRAP}: