-
Type:
CSR
-
Resolution: Unresolved
-
Priority:
P4
-
Component/s: client-libs
-
None
-
behavioral
-
minimal
-
Existing behaviour of JList.getScrollableUnitIncrement is clarified to mention what value it can return
-
Java API
-
SE
Summary
Clarify JList.getScrollableUnitIncrement can return a non-negative value that is, a positive value including 0, instead of mentioning it will always return a positive number.
Problem
JList.getScrollableUnitIncrement specifies that it always returns positive number, which in certain cases is not correct, as it can return 0.
Solution
Update JList.getScrollableUnitIncrement to mention it will return a non-negative number comprising of either 0 or any positive number
Specification
javax.swing.JList
* @return @return the non-negative "unit" increment value for scrolling in the specified direction
- * always positive
+ *
* @see #getScrollableBlockIncrement
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction)
- csr of
-
JDK-8364146 JList getScrollableUnitIncrement return 0
-
- Open
-