Change the amout a scroll bar moves when user uses the mouse wheel?

hi,
i have a JScrollPane, and when a user uses the "wheel" on the mouse, it seems to move up/down 1 line at a time...i would like it to scroll faster basically...so that when the "wheel", the scroll bars move up/down like 5 lines at a time....is there some way to set this value, or how can i do it?
thanks

It looks like it behaves just like if the user had clicked the up or down arrow on the scrollbar, so
I would suggest setting the unit increment on the vertical scroll bar to be 5X its current value. Of
course, this would also increase the amount that gets scrolled when the user clicks on the up
or down arrow. If you don't want that, you'd need to somehow only change the increment on a
mouse wheel event, do the scroll, then change it back. My guess is that you'll need to provide
your own look and feel class to do that.
: jay

Similar Messages

  • I can't scroll by hitting the space bar, or clicking on the scroll bar itself, or even use the scroll arrows- how do I make them work again?

    I wake up, unhibernate my laptop and suddenly I can't scroll by hitting the space bar, or clicking on the scroll bar itself, or even use the scroll arrows. In other programs it works fine. What happened and how do I fix this?

    You may have switched on [http://kb.mozillazine.org/accessibility.browsewithcaret caret browsing].<br />
    You can press press F7 (on Mac: fn + F7) to toggle caret browsing on/off.
    See http://kb.mozillazine.org/Scrolling_with_arrow_keys_no_longer_works
    * Tools > Options > Advanced : General: Accessibility: [ ] "Always use the cursor keys to navigate within pages"
    You can press Ctrl + L to go to the location bar.

  • I changed my Apple ID and password. When I use the Apple ID it still show up at old Apple ID. I can't login or purchase anything

    I changed my Apple ID and password. When I use the Apple ID it still show up at old Apple ID. I can't login or purchase anything??? What can I do??

    Hi,
    I had this problem too. Log out on everything you can be logged on with your apple id. After that log in with your new email and password. Hope it helps!

  • Occasionally when filling in forms in Safari 5.1.2 certain keys on the keyboard don"t work.  When I use the coma it opens up another tab.

    Occasionally when filling in forms in Safari 5.1.2 certain keys on the keyboard don"t work.  When I use the coma it opens up another tab. I've used other browsers to fill in the forms and they work fine so my keyboard is OK.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It won’t solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of this exercise is to determine whether the problem is localized to your user account, or is system-wide. Enable guest logins and log in as Guest. For instructions, launch the System Preferences application, select “Help” from the menu bar, and enter “Set up a guest account” (without the quotes) in the search box.
    While logged in as Guest, you won’t have access to any of your personal files or settings. Any application you run will behave as if you were running it for the first time. Don’t be alarmed by this; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    As Guest, launch the application(s) and test. Same problem(s)?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.

  • With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    With my i phone 4 , the Push notifications doesn't work for apps like (fb viber , whatsapp etc ) it only works for the official apps like message  even when im using the phone, has  this probleme with the iOs 6.0.1 and also with the iOs 6.1

    This isn't an issue. Notice the screen prior to the one that shows usage has an iCloud section and a Manage Storage button. For this button to activate ios needs to download a few kb from icloud. Switching back to this screen forces ios to download those few kb.

  • My e-learning consists of 40 slides. I am publishing the project as HTML5, while previewing, when I use the back button on the playbar, there is an audio mismatch. Some other audio is played for that slide. Please help.

    My e-learning consists of 40 slides. I am publishing the project as HTML5, while previewing, when I use the back button on the playbar, there is an audio mismatch. Some other audio is played for that slide. Please help.

    Hi there,
    Can you please share your Captivate version?(Help>About Adobe Captivate)
    Thanks,
    Nimmy Sukumaran.

  • Scroll bar moves when clicked on

    Hello.  I have a custom scroll bar that was made using AS2.  It works fine except that when you click on the bar and move it, the image shifts slightly and then doesn't line up correctly.  I don't know what's causing it to shift.  All registration points are in the upper left hand corner.  I was really hoping someone could help me with this.  Here is the code:
    txt.setMask(mask)
    scrollbar.onMouseDown = function() {
        if (this.hitTest(_root._xmouse, _root._ymouse) && txt._height>mask._height) {
            this.startDrag(false, scrollbarBG._x, scrollbarBG._y, scrollbarBG._x, scrollbarBG._height-this._height)
            txt.onEnterFrame = scrollThumbs;
            dragging = true
    scrollbar.onMouseUp = function() {
        stopDrag()
        dragging = false
        delete this.onEnterFrame;
    function scrollThumbs() {
        var funkyVar = -this._parent.scrollbar._y*(((this._height-this._parent.scrollbar._height)/(this._parent. scrollbarBG._height-this._parent.scrollbar._height))-1)
        this.Y = (funkyVar-this._y)*.2;
        this._y += this.Y;
        if(Math.abs(funkyVar-this._y)<1 && !dragging){
            delete this.onEnterFrame

    Thank you very much for the code.  After what you said, though, I went to find different code.  I used kirupa this time.  I just finished testing it out.  I typed in the code and it went a lot smoother.  However, the scroll bar top is STILL shifting to the side.  So it must mean it's not the code that is messing up?  All the registration points are in the upper left hand corner.  Should the points be somewhere else to stop the shifting?  Here's the code:
    scrolling = function () {
    var scrollHeight:Number = scrollTrack._height;
    var contentHeight:Number = contentMain._height;
    var scrollFaceHeight:Number = scrollFace._height;
    var maskHeight:Number = maskedView._height;
    var initPosition:Number = scrollFace._y=scrollTrack._y;
    var initContentPos:Number = contentMain._y;
    var finalContentPos:Number = maskHeight-contentHeight+initContentPos;
    var left:Number = scrollTrack._x;
    var top:Number = scrollTrack._y;
    var right:Number = scrollTrack._x;
    var bottom:Number = scrollTrack._height-scrollFaceHeight+scrollTrack._y;
    var dy:Number = 0;
    var speed:Number = 10;
    var moveVal:Number = (contentHeight-maskHeight)/(scrollHeight-scrollFaceHeight);
    scrollFace.onPress = function() {
    var currPos:Number = this._y;
    startDrag(this, false, left, top, right, bottom);
    this.onMouseMove = function() {
    dy = Math.abs(initPosition-this._y);
    contentMain._y = Math.round(dy*-1*moveVal+initContentPos);
    scrollFace.onMouseUp = function() {
    stopDrag();
    delete this.onMouseMove;
    btnUp.onPress = function() {
    this.onEnterFrame = function() {
    if (contentMain._y+speed<maskedView._y) {
    if (scrollFace._y<=top) {
    scrollFace._y = top;
    } else {
    scrollFace._y -= speed/moveVal;
    contentMain._y += speed;
    } else {
    scrollFace._y = top;
    contentMain._y = maskedView._y;
    delete this.onEnterFrame;
    btnUp.onDragOut = function() {
    delete this.onEnterFrame;
    btnUp.onRollOut = function() {
    delete this.onEnterFrame;
    btnDown.onPress = function() {
    this.onEnterFrame = function() {
    if (contentMain._y-speed>finalContentPos) {
    if (scrollFace._y>=bottom) {
    scrollFace._y = bottom;
    } else {
    scrollFace._y += speed/moveVal;
    contentMain._y -= speed;
    } else {
    scrollFace._y = bottom;
    contentMain._y = finalContentPos;
    delete this.onEnterFrame;
    btnDown.onRelease = function() {
    delete this.onEnterFrame;
    btnDown.onDragOut = function() {
    delete this.onEnterFrame;
    if (contentHeight<maskHeight) {
    scrollFace._visible = false;
    btnUp.enabled = false;
    btnDown.enabled = false;
    } else {
    scrollFace._visible = true;
    btnUp.enabled = true;
    btnDown.enabled = true;
    scrolling();

  • Vertical scroll bar disappears when I minimize the screen

    I have Firefox 10.0.2. I do have a vertical scroll bar with both the up and down button; however, they all disappear when I minimize the screen. When I am in Ancestry, for example, when I minimize I get a horizontal scroll bar but there is no vertical scroll bar. I have no clue what to do. I minimize screens a lot when I am in Ancestry and it gets very frustrating. Can anyone help?

    Hi,
    Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode].
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]
    [http://support.mozilla.com/en-US/kb/Uninstalling+add-ons Uninstalling Add-ons]
    [http://kb.mozillazine.org/Uninstalling_toolbars Uninstalling Toolbars]
    Safe mode disables the installed '''Extensions''', and themes ('''Appearance''') in '''Tools''' ('''Alt''' + '''T''') > '''Add-ons'''. Hardware acceleration is also temporarily disabled - the manual setting is '''Tools''' > '''Options''' > '''Advanced''' > '''General''' > '''Use hardware acceleration when available'''. [https://support.mozilla.org/en-US/kb/Options%20window%20-%20Advanced%20panel?as=u Options > Advanced]. All these settings/add-ons can also be individually or collectively disabled/enabled/changed in Firefox normal mode to check if an extension, theme or hardware acceleration is causing issues.
    If the problem persists, you can also try disabling the '''Plugins''' in Tools > Add-ons temporarily to check.

  • Why do google search results reset to match the search bar terms when i use the back button?

    Since the update to FF 23, the list of Google search results clears and the on-page search box is reset to match the address bar search box when I hit the back button to re-view the results list after checking a result.
    To see this issue for yourself, set your search provider to Google and make sure Instant is on. Type a search term into the search bar and press enter. A google page appears with your results list. Now, change your search terms or conduct a new search directly from the google page (without using the FF search bar). Click on the first result in the search list, then click the back button to return to the search results so you can check a differest result. As FF goes back to the google page, it will reset the on-page search box to match the FF search bar (although you were no longer on this search) and all search results will disappear, replaced by the message "Press enter to search". Pressing enter reconducts your old search, not the one you were on.
    This is incredibly maddening since searching for something requires frequent use of the back button to check through the list of search results, and then frequently trying the search again with slightly different terms. Although it sounds like a Google issue, it did not occur on the old firefox and has me wanting to revert. I tried to revert to the old search function via the "keyword search" addon, but this did not fix my issue. Is there a way to force FF to go back to the actual google search page I was just on instead of conducting a new google search from the FF search box when I hit the back button?

    In Firefox 23 versions and later the keyword.URL pref is no longer supported and it is no longer possible to specify the search engine for the location bar via the keyword.URL pref.<br />
    The search engine that is used on the location bar and on the about:home page is the search engine that is selected in the search Bar on the Navigation Toolbar.<br />
    Current Firefox versions do not update the about:home home page until you refresh the page (future versions will do this automatically without a refresh) and that is what happens if you use the Back key.
    You can install the Keyword Search extension to specify with search engine to use for the location bar and which search engine to use for the about:home page via the Options/Preferences windows of this extension, accessible via the about:addons page.
    * Keyword Search: https://addons.mozilla.org/firefox/addon/keyword-search/

  • How can we make the Retake Quiz button only appear when user reenters the course?

    In a Captivate 8 Quiz, we need to force the user to close the course (so attempts are captured by the LMS) from the Quiz Results page. The Retake Quiz button cannot show at this time. However, when the learner reenters the course from the LMS, the bookmarking brings the user to the Results page again. We need a Retake Quiz button to only show when the user reenters the course, not on Quiz completion. Disabling the bookmarking disables the reporting of attempts. Does anyone know a way to make that happen or a workaround?

    Have a look at my blog post:
    http://blog.lilybiri.com/review-only-incorrect-slides-captivate-6
    Lilybiri

  • What 's the meaning of "sample rate =-1" when to use the CAN init.vi?

    ALL,
          I saw a kind of use to CAN init.vi where The mode = "output recent" and the sample rate = -1. I check the NI  CAN help document, it seems that  the sample rate must be large than 0 when the mode = output recent. So,here,why the sample rate can be -1? What does it mean?
    Thanks!
    Lai

    I found that it is different whether to use "-1" or ''0" to sample rate. In CAN init.vi, there is an input parameter filepath which is used to load the ncd file or dbc file. The ncd file can't set the sample rate of  CAN message, but dbc file can. When I use sample rate = -1 and dbc file , the period(=1/sample rate) of CAN transmission equals  the Sample time defined in dbc file and is not determined by loop time in LabVIEW programm. But when I use sample rate = 0, the period of CAN transmission equals the loop time in LabVIEW programm. So I guess the period of CAN transmission is determined by the Sample time defined in dbc file when use sample rate = -1. Is that true?

  • Why the pages 09 can't display the tool bar when I use the full vision?

       I have found that the numbers and the keynote always show the tool bar on the top, but pages can not,when I use the full screen.

    BL,
    Contrary to mende1's experience, I do not see the Toolbar in Fullscreen mode, even when accessing the Menu and Format lines by moving the cursor to the top of the screen.
    I guess that the designers figured that you may not want the toolbar to come down in what is a minimalist mode. A design choice that you can object to, if you wish, by submitting Feedback from the Pages menu.
    Jerry

  • IPhone shuts off when I use the internet on the 3G network & I can't upgrade/restore because of network connection error. Any Help?

    A few months ago, while on the 3G network, my iPhone 3GS starting turning off randomly when I was using safari or an online app and the battery was somewhere around 5-20%. When this happened the only way to get the phone back on was by fully charging it which sometimes took a few hours even. It wasn't a big deal at the time because it was infrequent and while the phone was at a low battery %. However, in the past few months, around the time I upgraded to iOS 5.1 it started happened more and more often and at higher and higher battery percentages. It is now at a point where my phone shuts off every time I connect to the 3G network regardless of what my battery life is. I have called Rogers several times to complain about this and I have been told it is because of the battery for the most part but I don’t buy it; the problem has got to be more significant than the battery alone because I can listen to music and send texts at anytime and fully use the internet when I am connected to Wi-Fi. I more recently talked to someone in tech support from Rogers who said my phone cannot support the iOS 5.1 software and that is why it is crashing. They also asked if my phone was heating up more now than in the past and it is. They said this was further evidence that my phone was couldn't handle the new software and was basically on overload.  I was told to the best solution was to "Back Up" my iPhone then do a full "Restore". Here is where my next problem comes along. I cannot "Restore" my iPhone without doing an upgrade and every time I attempt to "Upgrade & Restore" an error message pops up that says "There was a problem downloading the software for the iPhone "...". The network connection timed out/was reset. -Make sure your network settings are correct and your network connection is active, or try again later". I have followed all of the protocol that is readily available online to address this problem but still no success. I disabled my firewall and anti-virus programs, I have ensured my connection is active and stable, I have upgraded to the newest iTunes, I have uninstalled iTunes and all apple programs in the correct order then reinstalled iTunes, I have disabled my DNS cache. Nothing works.
    If you have any advise whatsoever please share as it would be greatly appreciated.
    Thanks

    I was actually able to upgrade to the newest software, iOS 5.1.1 without connecting to my computer/iTunes but rather directly through my phone when I was home on Wi-Fi. After the upgrade I plugged my phone into a different USB port at the back of my computer and was able to do a full restore. I really don't think the USB port had anything to do with it because I use the same front USB port all the time with my external hard drive and other devices wuth no problems at all; regardless of what the actual solution was, I am now able to connect to iTunes and upgrade/restore without any problems so that half of my problem is resolved.
    I have yet to leave my house since doing the upgrade/restore so I am not sure if the problem with my phone crashing when I use the interent on the 3G is still an issue. I will test it today and tomorrow and give you an update.
    Thanks

  • HT1338 I purchased Aperture, downloaded plug in HDR Fex Pro, and upgraded to Lion and when I use the plug in it crashes Aperture

    I purchased Aperture then downloaded a trial plug in HDR Fex Pro, it worked fine that I upgraded to the Lion Operating system and now when I use the plug in it crashes the Aperture??? Please help

    You don't need a Help line!
    OS 10.6 Snow Leopard is once again available for $19.99 from the Apple Store:
    http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard
    and in the UK:
    http://store.apple.com/uk/product/MC573/mac-os-x-106-snow-leopard

  • What happens when the scroll bar moves to the bottom by itself?

    When I am browsing, the scroll bar moves downward all of sudden to the bottom of the arrow. When you click on the scroll bar to move the page back to the top, it automatically moves back the scroll bar back to the bottom of the page. I have tried reloading the page, going forwards and backwards, and refreshing the page but it still does this problem. The only way to fix this problem is you have to close Firefox and reopen the browser. Is there a solution?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode
    *https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for