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.
[ BUILD # : 200807040101 ] [ JDK VERSION : 1.6.0_07 ] The 'Containing Text' field should can be updated by UP/DOWN keys, when there is another option on combo box. If I navigate between the values, the text is not updated, neither with TAB or ENTER after update the chosen item.
This is caused by a KeyListener in class org.netbeans.modules.search.BasicSearchForm. The listener listens on the combo-box editors and when the Enter key is pressed, activates the Find button. The problem is that it does not care whether the combo-box has a pop-up displayed or not. I will fix it such that if the Enter key is pressed at the moment the pop-up is visible, the Find button is not activated such that the key press is handled by the default Swing routine.
Fixed. Changeset Id: 01ee552fbc3b (http://hg.netbeans.org/main/rev/01ee552fbc3b)
Integrated into 'main-golden', available in NB_Trunk_Production #324 build Changeset: http://hg.netbeans.org/main/rev/01ee552fbc3b User: Marian Petras <mpetras@netbeans.org> Log: fixed bug #140174
Product Version: NetBeans IDE Dev (Build 200807170007) Java: 1.6.0_07; Java HotSpot(TM) Client VM 10.0-b23 System: Linux version 2.6.24-19-generic running on i386; ISO-8859-1; pt_BR (nb) For Ubuntu with GTK L&F it works, but with Metal L&F it doen't works. Now it is worse than before because neither mouse works for combo selection. Now, if I try to select another item on combo, the selection is no more updated on the popup.
It must be fixed soon or patch should be removed asap because now it is worse than before. Not even mouse selection works after I try to select an item using the keyboard.
You are right. I tested the fix only with GTK L&F. I am now working on a proper fix. I will verify it on multiple platforms and L&F.
I was not able to find the root cause of the bug in a reasonable amount of time. I will add a condition such that the patch is enabled only with GTK L&F and only if variable "org.netbeans.modules.search.disable_patch_140174" is not set.
Steps to reproduce: 1-Go to 'Find in Project' and search for 'a' string, and some results are found; 2-Go to 'Find in Project' again and search for 'b', and some results are found; 3-Go to 'Find in Project' again and try to select the 'a' from combobox using the keyboard. When you press Enter, 'b' is the current value for 'Containing Text' and is no more possible to select another value in combobox. I hope it can help.
hmichel, thanks for the exact description of the issue. I was able to reproduce it. I just was not able to find the cause of the bad behaviour in three or four hours. I believe I would be able to find the cause if I continued the search but I decided to stop for now such that I can fix other, more severe bugs. I will change the code such that my fix is only used with GTK L&F and the original behaviour is used with all other L&F. I reproduced the problem with combo-boxes on Linux with Metal L&F and also on Windows XP with the default L&F (Windows L&F).
I just disabled the fix for all L&F's except for GTK L&F, such that the behaviour does not worsen on any L&F. Changeset Id: 2c7e57babebd (http://hg.netbeans.org/main/rev/2c7e57babebd)
I understand your point and agree about focus on severe issue. Thanks.
Fixed. The source of the bug was the custom ComboBoxModel, which never fired any ListDataEvents. I changed it such that it fires a ListDataEvent when its selectedItem changes and the combo-box started working as expected. As an extra benefit, I could remove quite a lot of search form's source code, which actually served as a workaround for the issue caused by the broken ComboBoxModel. Changeset Id: 70f66feb9f24 (http://hg.netbeans.org/main/rev/70f66feb9f24)
Integrated into 'main-golden', will be available in build *200811041401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/70f66feb9f24 User: Marian Petras <mpetras@netbeans.org> Log: fixed bug #140174 - "Combo-boxes in 'Find in Projects' do not work properly"
Product Version: NetBeans IDE Dev (Build 200812150750) Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
Any chance to see it for patch 2?
The status whiteboard "65fixes4-candidate" has been removed. At this time our proactive patches for the NetBeans 6.5.x IDE have concluded. If you own a Sun service plan contract for NetBeans, you may wish to contact Sun Service http://www.sun.com/contact/support.jsp to request a fix via the product defect escalation process. For more information on purchasing a Sun service plan contract for NetBeans, refer to the service plan item "Sun Software Service Plans (S3P) for Developers" in the Sun Service table found on our NetBeans Support Resources page http://www.netbeans.org/kb/support.html