I do contract work for a living, which could include writing a program such as this. However, I don’t do people’s homework for them. That just robs them of an education.
You have my full permission to implement this project any way you please.
I call it mad bee scrolling, because the cursor bangs into the edges of the window, as if it were an angry insect trying to escape.
To scroll, you press the middle mouse button, then bang it into one of the four walls of the window. If you bang it into the top wall, you scroll up. The deeper you bang the cursor into the wall, the faster you go. As soon as you let go of the middle mouse button, or return the cursor to the central part of the window, the scrolling stops.
The difficulty is, I don’t think using only standard Java tools, you have the low level control of the cursor needed to confine it, and to control its motion while in the wall so that you have to move the cursor a great distance to penetrate the wall even a little. You would likely have to resort to native classes to commandeer low level control of the mouse. It might be best to tackle this project on a platform that supports mouse confinement.
You also might zoom in an zoom out on some point by pressing and holding the left or right mouse button somewhere on the image. The idea is you see some detail of interest, and can easily zoom in for a look witout fiddling around with scrollbars to try to find it again at the new magnification.
![]() |
and suggestions to improve this page to Roedy Green : | ||
| Canadian Mind Products | |||
| mindprod.com IP:[65.110.21.43] | |||
| Your face IP:[38.103.63.16] | The information on this page is for non-military use only. | ||
| You are visitor number 3,025. | Military use includes use by defence contractors. | ||
| You can get a fresh copy of this page from: | or possibly from your local J: drive (Java virtual drive/Mindprod website mirror) | ||
| http://mindprod.com/project/scroll.html | J:\mindprod\project\scroll.html | ||