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.
When pressing ALT-TAB to switch to another application, NetBeans will sometimes capture the ALT keypress and activate the NetBeans menu by highlighting the "File" option. This menu will still be activated when returning focus to the NetBeans application. The result is that a user who ALT-TABs away from and back to NetBeans may execute unexpected commands because he or she expects keypresses to go to the active editor window, not the menu. I have actually damaged my development environment doing this. This behavior is inconsistent with other Windows applications.
It worksforme in NB dev (200608221800), JDK 6.0 (b98) ... could you please provide your NB build number and JDK version/number ?
Unfortunately this is known JDK bug, nothing we can do on Netbeans side. See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6458497 Appearance of this bug relates to the time and the way how Alt+Tab is pressed. When you press it slowly and first the Alt, then the Tab, release Tab, release Alt, error is more reproductible.