Click here to Skip to main content
15,891,937 members
Articles / Programming Languages / Java / Java SE

Add Mouse Wheel support to Swing Widgets

Rate me:
Please Sign up or sign in to vote.
3.44/5 (14 votes)
2 Jul 2000 166.8K   1.4K   22  
This article shows how to add support for Mouse Wheel for Java Swing Widgets
SET DEVSTUDIO=D:\Visual Studio\VC98
SET JDK12=D:\JDK1.2.2
%JDK12%\bin\javac -g -deprecation JFrameEx.java ScrollDemo2.java
%JDK12%\bin\javah -classpath . JFrameEx
"%DEVSTUDIO%\bin\cl" MouseWheel.CPP -I%JDK12%\INCLUDE -I%JDK12%\INCLUDE\WIN32 -I"%DEVSTUDIO%\Include" -FeMouseWheel.dll -MD -LD /link /libpath:"\"%%JDK12%%\lib\"" /libpath:"\"%DEVSTUDIO%\lib"" user32.lib gdi32.lib

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions