This is getting me quite confused:
I have a small application that uses a JSpinner
for numeric values. I added a MouseAdapter
to it, setting the value depending on the resulting event's getScrollAmount()
and getWheelRotation()
.
Everything is working quite fine as long as the application is run on linux (Debian Wheezy, Oracle JDK 1.6.0_32). That is, scrolling the mouse wheel while the JSpinner has focus works just fine (using GTK LookAndFeel).
Testing the software on Microsoft Windows exposed a different behavior:
The JSpinner
will not react on mouse wheel movement. LookAndFeel
s don't seem to be a problem here, as i already tried MetalLookAndFeel
on both Linux and Windows.
Any suggestions on how to get this JSpinner reacting on MouseWheelEvent
s on both OSes?
Thank you.