Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8198777

JList.getPreferredScrollableViewportSize(): fix mistake in doc for height calc

XMLWordPrintable

      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”.

            aivanov Alexey Ivanov
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: