RFR: 8364146: JList getScrollableUnitIncrement return 0 [v8]

Prasanta Sadhukhan psadhukhan at openjdk.org
Thu Nov 27 02:41:28 UTC 2025


On Wed, 26 Nov 2025 18:03:09 GMT, Phil Race <prr at openjdk.org> wrote:

>> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   spec wording
>
> src/java.desktop/share/classes/javax/swing/JList.java line 2510:
> 
>> 2508:      * @param direction less or equal to zero to scroll up/back,
>> 2509:      *                  greater than zero for down/forward
>> 2510:      * @return the non-negative "unit" increment value
> 
> Since zero isn't "the distance to scroll to the next row", we need to explain when and why it can be zero.

I have put in the conditions for returning zero value increment

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/26500#discussion_r2566999733


More information about the client-libs-dev mailing list