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.
The active menu in the main window does not correctly track the mouse pointer in some cases. Often, the menu 1-2 items to the left of the mouse pointer is active & selected. This is on Fedora 17 x86_64, with Java 1.7u4 installed via the x86_64 RPM from java.oracle.com. To reproduce: 1. Start NetBeans 2. Click the "Help" menu. The menu will drop down; it may or may not promptly switch to displaying the menu one or two menus to the left. 3. Move the mouse left. Moving the mouse horizontally gets the menu selection out-of-sync with the mouse pointer, so as the mouse pointer moves the active menu changes, but is not the menu under the pointer. This usually happens within 1-3 sweeps on my system. I see this with Java 1.7u4 in the following applications: * NetBeans 7.1.2 * NetBeans 7.2 Beta * JVisualVM 1.7u4 as shipped with the JDK My machine is a laptop with an Intel graphics chip, running Fedora 17 x86_64. I am using Gnome 3.4 with Gnome Shell as my desktop environment. I do *not* see the problem with JEdit, or on OpenJDK as shipped by Fedora (java-1.7.0-openjdk-devel-1.7.0.3-2.1.fc17.6.x86_64; tested NetBeans 7.1.2, 7.2, and VisualVM 1.3.3).
I have tried to reproduce this issue on Ubuntu, and see a similar but slightly different problem. Setup: * Ubuntu 12.04, x86_64 * Gnome Shell * ATI graphics, dual monitors * Java 1.7u4 * JVisualVM from 1.7u4 (since it exhibits the problem on my Fedora laptop, I thought it would be a suitable test case) Action: * Start JVisualVM * Click Help menu Result: * Help menu appears and immediately disappears. Holding down the mouse button on the Help menu does not cause it to stay - it still disappears. Expected result: * Help menu appears and allows me to select a menu option Additional notes: * Starting NetBeans 7.2 Beta and selecting the Help menu resulted in a lockup of some component of my graphics system; probably Gnome Shell. Upon restarting my X environment and starting it again, the menus worked. The JVisualVM menus then worked as well.
I just also tested again on my Fedora laptop with my Gnome session in graphics fallback mode (using the legacy Metacity window manager, I believe). I could not reproduce the issue in a couple tries, one with NetBeans 7.2 and another with JVisualVM. Therefore, it seems that the problem only appears * under Gnome Shell * with Oracle Java * more frequently on Fedora * sporadically (although I can reproduce with high probability within a couple tries on under the above configuration) In earlier testing I had also seen NetBeans crash the GUI environment on my laptop as well. I do not know what is different in OpenJDK that seems to fix the bug.
Is NetBeans window maximized when you're testing the menu bar? Was JEdit window maximized as well?
Yes, both NetBeans and JEdit were maximized.
I have the same problem, that actually seems to me 2 distinct issues (possibly the cause is the same): (A) the menu immediately closes in mazimized state (*), this happens both with both jdk1.6.0_23. (B) The menu pops-up wrong. Again only in maximized state this happens with jdk1.7.0_03, for example click on one item another at left opens. (*) Actually the problem seems to be the offset (both vertical & horizontal) between maximized and floating state. If you move the window at at screen top left (0,0) and maximize the menu works just fine! The same happens with other java desktop applications like JEdit, it is surely a bug of JRE. Hope they will fix soon. I have removed the NVIDIA driver and the problem persists, I am using Mint 13 cinnamon. Int is not a video card issue.
Looks like a duplicate of #215977, please reopen if still reproducible in recent builds, thanks.
*** Bug 226925 has been marked as a duplicate of this bug. ***
reopen as new report came from NB 7.3 final - see Bug 226925
OpenJDK was used in bug #226925 so let's keep this closed until there's a new report with Oracle JDK 1.7 and from NetBeans 7.3 or newer.
I just downloaded and installed NetBeans 8.0 with Oracle's Java 1.8 JDK and this issue occurs. Once more, moving the window (un-maximized) to the upper-left corner of the screen resolves the issue. I have tried this in the following Desktop Environments, all with the same results: 1) KDE 2) Gnome Shell 3) Mate I haven't tried it with OpenJDK 8 yet, so I will do that when I can.