响应滚轴就是响应键盘上的PageUp和PageDown的键盘事件。

解决方案 »

  1.   

    JDK1.4中提供了MouseWheelEvent和MouseWheelListener
      

  2.   

    Polarislee(北极星):
    哪里有函数手册查询?
      

  3.   

    MouseWhellEvent:Method Summary:int   getScrollAmount()
               Return the number of units that should be scrolled in response to this event
    ------------------------
    int   getScrollType()
               Returns the type of scrolling that should take place in response to this event
    ------------------------
    int   getUnitsToScroll()
              This is a convenience method to aid in the implementation of the common-case MouseWheelListener - to scroll a ScrollPane or JScrollPane by an amount which conforms to the platform settings
    ------------------------
    int   getWheelRotation()
              Returns the number of "clicks" the mouse wheel was rotated.
    ------------------------
    String paramString()
              Returns a parameter string identifying this event.
      

  4.   

    MouseWheelListener:Method Summary:mouseWheelMoved(MouseWheelEvent e) 
              Invoked when the mouse wheel is rotated.