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.

Bug 56184 - "Incompatible source level" dialog pops up while navigating platform pulldown
Summary: "Incompatible source level" dialog pops up while navigating platform pulldown
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: Tomas Zezula
URL: http://www.jroller.com/page/santhosh/...
Keywords: A11Y, UI
Depends on:
Blocks:
 
Reported: 2005-03-10 16:41 UTC by Jesse Glick
Modified: 2005-10-27 13:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2005-03-10 16:41:16 UTC
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.
Comment 1 Tomas Zezula 2005-03-11 14:15:13 UTC
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.
Comment 2 Jesse Glick 2005-04-08 22:58:03 UTC
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.
Comment 3 Jesse Glick 2005-05-27 23:45:58 UTC
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.
Comment 4 Tomas Zezula 2005-05-30 09:44:30 UTC
OK, I will try it.
Comment 5 Tomas Zezula 2005-10-27 13:40:28 UTC
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