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 scrolling-events. 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) ======================================================================
|