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 build. If I have a j2seproject using the default JDK 1.6 platform, and I set source level to 1.5, then go to the Java Platform pulldown and begin navigating it via the keyboard, I cannot select an arbitrary platform without using the mouse: as soon as I start to move through the list, passing over "JDK 1.2.2", a dialog pops up warning me to change the source level too. This dialog is apparently being triggered as the list is navigated, even while it is still open. Must wait until the user actually makes a selection and closes the combo's popup.
The behavior is wrong, but there is no nice solution how to fix it. The JComboBox changes the selected value while you are navigating by keyboard. All the listeners (ActionListener, ItemListener and ListDataListener on model) are notified by navigation. The actual selection (pressing enter) does not fire event at all. The fix will need at least to rewrite the JComboBox action map. Sorry, but I don't see a way how to fix it.
Perhaps instead of popping up a dialog, a warning message could just be shown in the properties dialog somewhere? This bug is really pretty annoying - breaks KB usage.
Just found an odd but perhaps usable trick in Santhosh Kumar's blog. Not sure what the impact is on random L&Fs, but it's worth trying at least.
OK, I will try it.
Works fine on the Linux, on the Windows there is a small problem (the JComboBox is not expanded by pressing down arrow), but the behavior is much more better than it was before. Checking in src/org/netbeans/modules/java/j2seproject/ui/customizer/CustomizerLibraries.java; /cvs/java/j2seproject/src/org/netbeans/modules/java/j2seproject/ui/customizer/CustomizerLibraries.java,v <-- CustomizerLibraries.java new revision: 1.13; previous revision: 1.12 done