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

Spec for methods JLayer.getScrollableTracksViewportHeight/Width should be corrected

XMLWordPrintable

      Specification for methods

      javax.swing.JLayer.getScrollableTracksViewportWidth()
      javax.swing.JLayer.getScrollableTracksViewportHeight()

      Should not mention at all:

           * Returns {@code false} to indicate that the width of the viewport does not
           * determine the width of the layer, unless the preferred width
           * of the layer is smaller than the width of the viewport.

      It is confusing as it's currently not so - even when delegation happens this assertion is not satisfied - see #6899145. The spec should also be updated to tell that if delegation doesn't happen the methods just return "false".

            alexp Alexander Potochkin (Inactive)
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: