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.
Dev builds, Mustang. When I press Ctrl-7 on a Java source, the Navigator window appears (I keep it in autohide mode) but there is no selection and no KB focus. Have to hide it (ESCAPE) then Ctrl-7 again; then the first element is selected and KB focus works normally. After switching to a different Java file, the first Ctrl-7 again gives no focus.
Still true, by the way. Minor but annoying.
Everything works OK on Windows, as usual. Does it happen with current builds? I even implemented in NavigatorJList: /** Always select some element when focused */ public boolean requestFocusInWindow () { boolean result = super.requestFocusInWindow(); if (getSelectedIndex() == -1 && getModel().getSize() > 0) { setSelectedIndex(0); } return result; } So I don't know what to do more. Please reopen if this error is still happening.
Still happens in current dev builds, current Mustang. It seems that it happens only if the navigator window is initially empty and displays "Parsing..."; after the actual method tree appears, there is no focus. If the method tree is available immediately there is focus.
Yes, finally I could reproduce! It seems that you are slowly learning how to submit info that makes the bug fixable for me :-))
really nasty bug. It seems that focus in Swing is for experts only ;-) hopefully fixed in main trunk: Checking in base/ModelBusyListener.java; /cvs/java/navigation/src/org/netbeans/modules/java/navigation/base/ModelBusyListener.java,v <-- ModelBusyListener.java new revision: 1.3; previous revision: 1.2 done Checking in base/NavigatorJList.java; /cvs/java/navigation/src/org/netbeans/modules/java/navigation/base/NavigatorJList.java,v <-- NavigatorJList.java new revision: 1.4; previous revision: 1.3 done Checking in ClassMemberPanel.java; /cvs/java/navigation/src/org/netbeans/modules/java/navigation/ClassMemberPanel.java,v <-- ClassMemberPanel.java new revision: 1.5; previous revision: 1.4 done Checking in ClassMemberPanelUI.java; /cvs/java/navigation/src/org/netbeans/modules/java/navigation/ClassMemberPanelUI.java,v <-- ClassMemberPanelUI.java new revision: 1.6; previous revision: 1.5 done Checking in spi/ListModelSupport.java; /cvs/java/navigation/src/org/netbeans/modules/java/navigation/spi/ListModelSupport.java,v <-- ListModelSupport.java new revision: 1.3; previous revision: 1.2
Sorry about that, I just never noticed the condition that triggers it before a few days ago.
*** Issue 52871 has been marked as a duplicate of this issue. ***
I think I just saw it happen again in a dev build. Might have to reopen if it keeps happening...
Yup, still happening to me. Mustang, Linux. No way to reproduce reliably that I know of.
aaaaaa I can't belive it. !%$#@%@$* focus :-)
P5 might be appropriate since the workaround is easy - Escape to go back to the editor, then Ctrl-7 again and it generally has focus by then.
Don't think I've seen it recently.