8198777: JList.getPreferredScrollableViewportSize(): fix mistake in doc for height calc
authoraivanov
Wed, 07 Mar 2018 16:08:52 +0000
changeset 49226 091d7717bf98
parent 49225 e0b025915be8
child 49227 96bebffe0be1
8198777: JList.getPreferredScrollableViewportSize(): fix mistake in doc for height calc Reviewed-by: serb, ssadetsky
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 @@
      * <p>
      * 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.
      * <p>
      * <b>{@code VERTICAL_WRAP} or {@code HORIZONTAL_WRAP}:</b>