<Swing Dev> [9] Review request for 8075084: https://bugs.openjdk.java.net/browse/JDK-8075084

Semyon Sadetsky semyon.sadetsky at oracle.com
Tue Oct 25 13:24:10 UTC 2016


Hello,

Please review fix for JDK9:

bug: https://bugs.openjdk.java.net/browse/JDK-8075084

webrev: http://cr.openjdk.java.net/~ssadetsky/8075084/webrev.00/

When a modal dialog is shown in scroll bar button click listener it 
blocks all events targeted to the scroll bar owner window.

At the same time clicking on scroll bar button triggers a timer which 
should adjust scroll bar value automatically until mouse button is 
released, i.e. until mouse release event comes to the pushed scroll 
button. So, this timer is not stopped by the mouse release event because 
it is rejected by the modal filter.  When modal dialog is closed the 
timer continues to produce scroll adjustment events and the dialog is 
shown again. Also the scroll button remains pushed and hovered all the 
time (because it didn't get mouse release event).

In the suggested fix the timer is started only if the scroll bar owner 
window keeps input focus after the adjustment callback and the scroll 
button is reset otherwise.

--Semyon




More information about the swing-dev mailing list