This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Linux, JDK 1.6.0, NetBeans 6.0M7, but I also experienced this with M6. (Don't know about before, I switched to Linux only recently.) I have a mouse (actually trackball) with three buttons and a fourth button that makes the mouse/trackball scroll instead of move the pointer, i.e. holding that button transforms the trackball wheel into a scroll wheel (really nifty). All X Window and Java/Swing applications work fine with this setup (after all, there is nothing that sends this button press to applications; all they get is the scroll wheel event in whatever direction), except NetBeans. NetBeans also scrolls fine, but after maybe half a second it pops up a context menu, as if I pressed the second mouse button, which I didn't. This is really annoying, as it basically prevents me from scrolling around in files. I'm assuming there is some logic in NB that makes it treat any mouse button press beyond button #1,2,3 as second/right-button press (though as I mentioned, the application shouldn't even receive notice that any button was pressed; the button translates into scroll events).
OK, but in which situations the popup menu comes? During scrolling in editor? In projects view? In Nvaigator? Where? NetBeans should use Swing call isPopupTrigger() for deciding whether to show popup, so it should work same as other java apps.
Both editor and navigator (probably in all scrollable views). I click the button which maps the wheel to scroll-wheel, and as soon as I move the wheel, the view scrolls and pops up the menu. As the "scroll button" is neither the second nor third mouse button it shouldn't have any other effect than scrolling. For instance JEdit or Eclipse work, so it's NetBeans specific.
This looks more like Swing issue, let's try it - please run attached small testing app and please let me know if problem can be reproduced with test app. Thanks.
Created attachment 39879 [details] zipped test application (nb project)
The Swing example DOES have the same problem, yes. If that means that the function isPopupTrigger() is broken, is there any chance of getting that fixed? (or a way to work around it in NetBeans)
I entered jdk bug 6624085 for this problem and added reporter to interest list, let's wait what JDK guys will say. See http://bugs.sun.com/view_bug.do?bug_id=6624085
Reporter, could you please attach info about trackball hardware? Thanks.
I'm using a Logitech Marble Mouse USB. My xorg.conf on my Ubuntu system has this mouse config section: Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" #Option "Protocol" "ImPS/2" Option "Protocol" "Auto" Option "ZAxisMapping" "4 5" Option "XAxisMapping" "6 7" Option "EmulateWheel" "1" Option "EmulateWheelButton" "9" Option "Emulate3Buttons" "true" EndSection I.e., button '9' makes the device emulate a mouse wheel. Via a .Xmodmap file: pointer = 1 8 3 4 5 6 7 2 9 10 11 I turn the mouse buttons (switch buttons two and eight) so that I have left button, right button, middle button, and wheel button. Sorry, I don't exactly remember why the options are as they are, but it works perfectly (except for NB, obviously).