Trouble with mouse wheel button!

How to enable scrolling in JScrollPane by mouse wheel button? In AWT TextArea everything is OK. Thanks.
import javax.swing.*;
class New {
     JFrame frame = new JFrame("MouseWheel");
     JTextPane txt = new JTextPane();
     public Tockic(){
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.setSize(100,300);
          txt.setText("AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best AWT is the best");
          JScrollPane scroll = new JScrollPane(txt);
          frame.getContentPane().add(scroll);
          frame.setVisible(true);
     public static void main(String[] args){
          new New();
import java.awt.*;
import java.awt.event.*;
class Old {
     Frame frame = new Frame("MouseWheel");
     TextArea txt = new TextArea();
     ScrollPane s = new ScrollPane(ScrollPane.SCROLLBARS_ALWAYS);
     public Old(){
          frame.setSize(100,100);
          txt.setText("Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad Swing is very bad");
          frame.add(txt);
          frame.setVisible(true);
          frame.addWindowListener(new WindowAdapter(){
               public void windowClosing(WindowEvent e){
                    frame.dispose();
                    System.exit(0);
     public static void main(String[] args){
          new Old();

In all honesty though, even if fixing this kind of bug would create a new one, its not a bug that should be ignored. Its a major one imo (fix this bug and create a new one, I would personally take my chances). I remember after effects had a bug in a recent update, were audio always was set to low quality when you export, which was very annoying, and it wasn't fixed for months! This bug is worse, and happily I read this thread before updating so Im staying away for now, I hope it won't take months to fix this one.
It makes sense and Im really happy to hear a chunk of the AE team is working on optimizing the code.Though I think they should devote more people to that. AE is such an old program that I assume those working with keying or other of the features that have been updated lately, they bought a better plugin for it allready. I would much rather have NO updates for a year if that means the program would become more stable, faster and in the future they would not need to patch up layers and layers of old code, as you say....and from what I remember the response from the community was pretty much the same from every single one when it was asked in public what people wanted in the future updates....a faster program. THe content of AE is all ready great, and you can get plugins for pretty much everything you need...except optimization and an up to date software that uses the computer to the maximum potential. 

Similar Messages

  • Ae 13.1can't pan in viewer with mouse wheel button !!!!!!

    one of the bad things in ae 13.1 is that you can't pan in viewer with mouse wheel button

    In all honesty though, even if fixing this kind of bug would create a new one, its not a bug that should be ignored. Its a major one imo (fix this bug and create a new one, I would personally take my chances). I remember after effects had a bug in a recent update, were audio always was set to low quality when you export, which was very annoying, and it wasn't fixed for months! This bug is worse, and happily I read this thread before updating so Im staying away for now, I hope it won't take months to fix this one.
    It makes sense and Im really happy to hear a chunk of the AE team is working on optimizing the code.Though I think they should devote more people to that. AE is such an old program that I assume those working with keying or other of the features that have been updated lately, they bought a better plugin for it allready. I would much rather have NO updates for a year if that means the program would become more stable, faster and in the future they would not need to patch up layers and layers of old code, as you say....and from what I remember the response from the community was pretty much the same from every single one when it was asked in public what people wanted in the future updates....a faster program. THe content of AE is all ready great, and you can get plugins for pretty much everything you need...except optimization and an up to date software that uses the computer to the maximum potential. 

  • Newbie with question about mouse wheel button

    Sorry in advance if this is too simple, but I'm trying to create an interactive website that requires scene switching by way of the mouse wheel button.
    I'm creating mutliple interactive labeled images that I want to be able to scroll through by using the mouse wheel button but I don't know the action script code.
    Any help?
    Furna.

    Hi Kglad I have a small query about your code correct me if I am wrong some where. You used following lines to
    create  movie clip,
    set focus on it,
    and add event listener to it.
    the lines are
    var tl:MovieClip = this
    stage.focus = tl
    tl.addEventListener(MouseEvent.MOUSE_WHEEL,f);
    Now say I have a button on stage and I click it once. the focus will change to the button. and hence we will have to set the focus again to tl after processing button click.  am I correct on this?
    we can alternatively use
    stage.addEventListener(MouseEvent.MOUSE_WHEEL,f);
    which will always listen to the scroll event no matter where the focus is, or is there some problem which might occur due to this?

  • Why am I unable to scroll through bookmarks with mouse wheel anymore?

    Used to be able to scroll through bookmarks with mouse wheel, now I am unable to. I have tried reinstalling firefox and disabling all addons but same problem. Please help!

    Hello,
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.
    You might need to restart Firefox in order for this to take effect, so save all work first (e.g., mail you are composing, online documents you're editing, etc.).
    Then perform these steps:
    *Click the orange Firefox button at the top left, then select the "Options" button, or, if there is no Firefox button at the top, go to Tools > Options.
    *In the Firefox options window click the ''Advanced'' tab, then select "General".
    *In the settings list, you should find the ''Use hardware acceleration when available'' checkbox. Uncheck this checkbox.
    *Now, restart Firefox and see if the problems persist.
    Additionally, please check for updates for your graphics driver by following the steps mentioned in the following Knowledge base articles:
    * [[Troubleshoot extensions, themes and hardware acceleration issues to solve common Firefox problems]]
    * [[Upgrade your graphics drivers to use hardware acceleration and WebGL]]
    Did this fix your problems? Please report back to us!
    Thank you.

  • Cant scroll horizontally with mouse wheel in FF

    I cant scroll horizontally in FF unter XP+SP3 by pressing the mouse wheel sideways. This is the same in FF 3.6 and 4.0 beta, while in IE 6.0 and in other MS programs (Explorer, Word, ...) it works fine. I am having this problem with 2 different mice: Fujitsu 400NB and easytouch ET-9600. I cant find newer drivers for them than what I have installed from the CDs. Here some settings from my FF: mousewheel.horizscroll.withnokey.action;0 mousewheel.horizscroll.withnokey.numlines;1 mousewheel.horizscroll.withnokey.sysnumlines;true. Some time ago I played around with them but that didn't help. What else can I do to get FF scrolling horizontally?

    This should get you there
    http://css-tricks.com/snippets/jquery/horz-scroll-with-mouse-wheel/
    1. Load the mousewheel min script via CDN (jquery-mousewheel - cdnjs.com - the missing cdn for javascript and css)  into the Scripts Panel;
    2. Add the provided snippet into your Stage > compositionReady event handler.
    hth
    Darrell

  • Horizontal scrolling with mouse wheel?

    I have built a website for a client that scrolls only horizontally. Is it possible to scroll with the mouse wheel horizontally?
    Is there certain HTML I need to add?
    Thank you

    Hi,
    There is no out of the box solution to force horizontal scrolling with mouse wheel. However, you can add your own code to your Muse site after exporting it. These docs should be helpful :
    http://css-tricks.com/snippets/jquery/horz-scroll-with-mouse-wheel/
    http://stackoverflow.com/questions/2346958/how-to-do-a-horizontal-scroll-on-mouse-wheel-sc roll
    Regards,
    Aish

  • How do you make a page scroll horizontally with mouse wheel?

    As the title says, how do you make a page scroll horizontally with mouse wheel in edge animate?

    This should get you there
    http://css-tricks.com/snippets/jquery/horz-scroll-with-mouse-wheel/
    1. Load the mousewheel min script via CDN (jquery-mousewheel - cdnjs.com - the missing cdn for javascript and css)  into the Scripts Panel;
    2. Add the provided snippet into your Stage > compositionReady event handler.
    hth
    Darrell

  • Minimize button doesnt work with mouse right button after openning a new tab in windows 8.1 with firefox nightly

    I'am using Mozilla firefox nightly version in Windows 8.1 .... after starting the Mozilla all toolbar options, minimize, maximum buttons works fine. but as soon as i open a new tabe the (minimize, maximize, close) options do not work with mouse left button clicking. I have to click taskbar "nightly icon" to minimize or close the browser.

    HI Ashraful_007,
    Currently Nightly is not a supported version and is changing each day, however please also to not be discouraged to try to start Firefox in Safe Mode to make sure it is not an add on as well as file a bug in bugzilla.mozilla.org.

  • Only had my iPhone 5 a week and already I'm having trouble with the home button? Any soloutions

    Only had my iPhone 5 a week and already I'm having trouble with the home button? Any soloutions

    Sure. Take it back. If you got it from new it has a warranty.
    Or describe the problem fully in case we can help.  "Having trouble with the Home button" doesn't give much of a clue....

  • Having trouble with the home button

    I'm having trouble with my home button. It works when it wants to. Has anyone else had this trouble?

    Try these three very basic troubleshooting steps and see if any of them help.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    This involves using fhe home button but try it anyway .....
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.
    Quit all apps and restart. If you have multitouch gestures turned on, you can swipe up from the bottom of the screen to get to the task bar.
    Go to the home screen first by tapping the home button. Double tap the home button and the task bar will appear with all of your recent/open apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap above the task bar. Restart the iPad.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.

  • Scroll error with mouse wheel [SOLVED]

    thought this only happened in firefox, but it happens in opera and konqueror
    i did a fresh install of arch and it is updated. installed xorg and kde. i have used the firefox package from arch as well as installing from mozilla.com itself, same issue in firefox, but like i said it happens in other browsers and file managers
    if i scroll down (towards me) its fine, but if i scroll up, i get the right click popup menu. in konq it is a little different as it places whatever i copied into the clipboard into the address bar as a web page
    relevant parts of my xorg.conf
    Section "InputDevice"
    # Identifier and driver
    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol" "IMPS/2" # IntelliMouse PS/2
    Option "Device" "/dev/psaux"
    Option "ZAxisMapping" "4 5"
    # Option "Emulate3Buttons"
    # Option "Emulate3Timeout" "50"
    this didn't use to happen, but i cant remember when it started and what was updated when it did. also i do not notice this on other distros. i have also enabled emulate3buttons and added to zaxismapping to 4 5 6 7, no change. any ideas? it is a standard logitech wheel mouse.

    ok so i modified my xorg.conf to include the following
    Identifier "Mouse1"
    Driver "mouse"
    Option "Protocol" "IMPS/2"
    Option "Device" "/dev/psaux"
    Option "ButtonMapping" "1 2 3 4 5"
    Option "ZAxisMapping "4 5"
    i added the buttonmapping line from pclinuxos where my mouse works fine, but it was originally 1 2 3 6 7, i changed it to what is above to see if that worked, it did not. i have also tried explorerps/2, /dev/input/mouse, and 4 5 6 7 for zaxismapping and enabled and disabled emulate3buttons...all with no change
    i have run xev and it seems that when i scroll up i get a buttonpress event on button 3 and button 4 with a release event for button 4
    so from that it appears that when i scroll up it is also executing a right mouse click (button 3)
    any ideas?

  • Mighty Mouse wheel button

    The wheel button on my Mighty Mouse will not allow itself to be changed to any other function than as a window scroller. If I click it once inside a window and move the mouse (not the wheel) forward or back it scrolls the window up or down. No matter what I set it to. I would like to set it to putting Dashboard on the desktop. If I set the either the primary or secondary button to Dashboard it works fine. How do I fix this?
    Also, when I used Konfabulator widgets with my powerbook I could have any widget sitting on the desktop all the time. Can I do this with Dashboard widgets? I like the calendar and iCal events to be visible all the time.
    Thank you for your time!
    Dan

    Hi vandan,
    I have the same problem with my MMouse, Button3 and 4
    don't work.
    Did you get an helpful answer?
    No, not yet.
    I wonder if there is a preference file somewhere that needs to be trashed so a new setting can take hold.

  • Issue with Adobe Muse parallax jitters with mouse wheel scrolling vertically.

    Hi all,
    I'm learning Adobe Muse for the first time to put together a wedding website (http://mattandsangeeta.businesscatalyst.com/index.html), so bear with me as I'm a novice at the software - though I do have the most up version, Adobe Muse CC 2014.
    So far, it's been an excellent platform, and for the most part the site functions incredibly well. However, one key flaw I've noticed in it is the parallax scrolling speed when using a mouse.
    The parallax portion of the site jitters badly, and while we've found a few improvements for the issue (the best was making sure there was nothing that had scrolling set to "0"), I'm still at a loss for how to get smooth scrolling transition speeds. Every forum Adobe has seems to be showcasing the features, and not troubleshooting this particular issue. A lot of posts are similar, but none seem to be resolved. I've noticed that other parallax pages are smoother with the mouse wheel scrolling down, so I'm hoping it's just an issue with Muse that has a setting or snippet of code that can remedy the issue.
    What makes me realize it's the mouse wheel scrolling, and not the site itself, is because whenever I access the site on my surface pro tablet, the parallax runs buttery smooth with touch control or even trackpad control. Same when you click the middle scroll button and pan down. Without any mouse wheel scrolling, it looks great! But with a mouse wheel, it hiccups constantly and ruins the effect.
    So, is there any way to smooth out the steps that the mouse wheel scrolling seems to be causing?
    Thanks in advance,
    Matt

    Thanks for the link, however that specific thread was one of the ones I referenced in my original post.
    In the beginning of the thread, it's clear that coding can fix the issue, though it's not recommended. More telling is that the response you referenced indicates that the issue is claimed to have been either fixed or mitigated In updated releases of Muse.
    As you pointed out earlier, however, Firefox displays the parallax a little better than Chrome, and much better than Internet Explorer. I'm assuming that Adobe Muse Creative Cloud 2014 release attempted to this issue.
    So my question kind of remains: am I missing a setting that would make the scrolling more smooth, or is it simply just a limitation of the browser / software / parallax combination?
    Thanks again for the responses.

  • Is it possible to disable scrolling of tabs with mouse wheel?

    Often I close tabs using middle mouse button which is also the wheel. When I point cursor on the tabs, wheel accidently rotates and I close wrong page tab.

    You can't disable the tab scrolling with the mouse wheel AFAIK, so you need to use other means to close the tab.<br />
    You can close the current tab with the close X on the tab or one close X at the end of the tab bar or use the keyboard with Ctrl+W.<br />
    Not selected tabs can only be closed via the right-click context menu as an alternative.
    Otherwise you can try to set the minimum width of a tab to a larger value to have more room with the scrolling.
    *Custom Tab Width: https://addons.mozilla.org/firefox/addon/custom-tab-width/

  • Disable switching desktop OpenBox with mouse wheel

    How do i disable the option of switching desktops (1st and 2nd desktop) with the mouse wheel or the wheel in the touchpad? (using OpenBox with touchpad synaptics)

    remove this code from your rc.xml
    <mousebind button="Up" action="Click">
    <action name="DesktopPrevious"/>
    </mousebind>
    <mousebind button="Down" action="Click">
    <action name="DesktopNext"/>
    </mousebind>
    PS: don't forget to backup first.

Maybe you are looking for