Created attachment 144055 [details]
Code completion result for "Butto" with no "Butto*" classes imported.
When using code completion for a class which is not yet imported, the code completer gives very strange, highly irrelevant (and annoying) suggestions.
In a class in my Maven/Vaadin application, I write "Butto" and press ctrl+space, a long list of suggestions are given to me, the first being the final long sun.awt.XConstants.Button1MotionMask. First some 50 suggestions below is the first "class" suggestion, which is the com.vaadin.ui.Button class I want.
I'm running a clean Netbeans 7.4 install in a newly installed Mac OS X 10.9.1 and I have attached the code completion result screenshot as well as my java code completions settings.
Created attachment 144056 [details]
Code completion settings
Improving mechanism that preselects the most relevant completion item.
*** Bug 243463 has been marked as a duplicate of this bug. ***
Integrated into 'main-silver', will be available in build *201503190001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Dusan Balek <firstname.lastname@example.org>
Log: Issue #240570: Code completion for java classes suggests irrelevant code - fixed.