Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to change the bindings for mouse4 and mouse5 (the thumb buttons) in Netbeans? I can't find any option in the NB keymapper, nor can I find anything on Google!

I'm using Netbeans v7.0.1.

share|improve this question

What I've done to accomplish the desired result is bound my mouse buttons to keystroke combinations and then map those combinations in Netbeans.

Depending on your mouse manufacturer but it really helps if it already comes with a software to allow overall and per-program custom button bindings (e.g. in my case SetPoint by Logitech made it an ease - with a caveat of the middle button for which it is unable to support per-program binding for my M510).

If such manufacturer provided software isn't an option for your mouse you could accomplish the same result with AutoHotkey and the Remapping Keys and Buttons docs. e.g.

XButton1::Shift - Makes the fourth mouse button behave like the Shift key.

The Remarks section also covers how to make a binding for a specific window so you could have more freedom in what and how you decide to map.

share|improve this answer
Non-programmable mouse-users will shake their heads in agony about this but yeah, totally works, thanks! How does Netbeans not have this feature yet? – avalancha Feb 11 at 11:45

To elaborate on @Jaaks answer, here is an example autohotkey script, which remaps mouse4 to Alt+<- and mouse5 to Alt+-> in order to navigate forwards/backwards in netbeans:

if WinActive("NetBeans IDE ahk_class SunAwtFrame") 
  Send {Alt Down}
  Send {Left}
  Sleep 10
  Send {Alt Up}

  Send {Alt Down}
  Send {Right}
  Sleep 10
  Send {Alt Up}
share|improve this answer

No you can't. But you can vote for this bug. You'll have to create an account for the netbeans site if don't allready have one.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.