I have an eclipse plugin which uses the SWT_AWT bridge. After creating a
Frame Object using SWT_AWT.new_Frame(...) I add to it a JScrollPane, which
in turn contains a JPanel. When the JPanel grows larger than the viewable
area, scrollbars are rightly displayed, and can be used perfectly by
dragging them with the mouse.
The problem I have is that the JScrollPane won't scroll using the mouse
wheel. I think the mouseScrolled event is being picked up by the
Composite and not being forwarded to the JScrollPane. I can work around
this by adding a MouseWheelListener to the Composite and then scrolling
the JViewport manually using JViewport.setViewPosition(...), however, this
results in very jerky scrolling.
Has anyone got a better solution this problem, is there a correct way to
forward the mouseScrolled event to the JScrollPane?