View RSS Feed

Java Swing

Java Swing tutorials.

  1. How to Write a Mouse-Wheel Listener

    by , 04-26-2012 at 08:39 PM
    When mouse’s wheel get rotated, it is been notified by the mouse wheel events. All mice don’t have wheels and in those cases generation of mouse wheel events is never done. No other way is present to detect programmatically that whether mouse wheel is present in a mouse or not.

    MouseAdapter AWT class shall be used alternatively that would be implementing the interface MouseWheelListener, for creation of the MouseWheelEvent and overriding the specific event methods.
    It is not ...
    Categories
    Actions