JDK-4419271 : Provide support for scrolling-mechanisms of non-mouse input-devices
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.3.0,1.4.1,7,8,9
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_2000,windows_xp
  • CPU: x86
  • Submitted: 2001-02-27
  • Updated: 2016-12-22
  • Resolved: 2016-12-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
9 b150Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Name: yyT116575			Date: 02/26/2001

java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)

As noted by Sun, a MouseWheelListener is added to the BasicScrollPaneUI.
Alternative input-devices (read: not mice) like touchpads often also actively
support scrolling. This should work in Java as good as in native apps. In the
case of my touchpad I can slide a horizontal or vertical edge and my window
will scroll: Very convenient and intuitive. It seems likely to me that this
done by it's device-driver sending scrolling events to the targeted native
window. Aren't these events catchable by the underlying Swing-components? I can
imagine that this would be regular native scrolling-events which could be
transformed to 'special AWT events' and from there be adapted as Java Swing
The native device-drivers have already done the job of transforming the lower
level device-events to higher-level scrolling events of the native GUI. It
seems to me that all that rests is to get those events into the Java event
system. It's only a quick think-over, but a solution seems very important to
me. People expect these features..
(Review ID: 117711) 

Currently all requested functionality was implemented already via other requests (WM_?SCROLL and WM_MOUSEWHEEL+shift), but it seems that WM_MOUSEHWHEEL was missed.

EVALUATION I'm not sure that any events are generated by touch pad devices. Reassigning to AWT for further investigation. scott.violet@eng 2001-02-27 It's possible that the touch pad driver could be generating WM_VSCROLL/WM_HSCROLL events when the user slides the edge of the pad. Currently we respond to the WM_MOUSEWHEEL event, but could also listen for WM_?SCROLL events. One question is what we would do with such an event. AWT might have to add a new type of InputEvent to be dispatched to Swing Components. ###@###.### 2003-04-24