Can I use a mouse wheel with Swing controls?

John Zukowski

Java doesn't support this at this time. http://developer.java.sun.com/developer/bugParade/bugs/4289845.html shows it as an RFE, committed to the Merlin release, which I believe is 1.4.

If you don't care to wait for 1.4, see http://www.codeproject.com/java/mousewheel.asp for how to add it with the help of JNI.