changeset 49657:091d7717bf98

8198777: JList.getPreferredScrollableViewportSize(): fix mistake in doc for height calc Reviewed-by: serb, ssadetsky
author aivanov
date Wed, 07 Mar 2018 16:08:52 +0000
parents e0b025915be8
children 96bebffe0be1
files src/java.desktop/share/classes/javax/swing/JList.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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>