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.
Product Version = NetBeans IDE 8.1 (Build 201510222201) Operating System = Mac OS X version 10.11.4 running on x86_64 Java; VM; Vendor = 1.8.0_77 Runtime = Java HotSpot(TM) 64-Bit Server VM 25.77-b03 Hi, There seems to be a problem when auto code completion is turned on. For example: Scene scene = new Scene(root, 650, 480); scene.getStylesheets().clear(); ^ | | At the '.', I get a list of methods, then when I type 'g' whatever is in the first of the list gets selected without me pressing the return key. In my case its 'scene.addEventFilter(EventType.ROOT, eventFilter);' Is there any workaround for this bug? Thanks.
Can you please check code completion settings? Preferences -> Editor -> Code Completion -> Java -> Completion Selectors for Java
Created attachment 159155 [details] Screenshot
I have attached a screenshot of the code completion. I used to have "Auto popup on typing any java identifier part" and changed the completion selector to "[.,;:([+-=abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVXYZ]", I thought this was the problem so I disabled it. but still no workaround.
Autopopup on any Java Identifier Part and Code completion selector are two independent settings. If the first one is checked the completion is invoked when typing any letter of identifier. Otherwise the completion is invoked only when typing '.' The second one controls the keys which accepts selected item from completion list. The default value is .,;:([+-= the problem is that you've set that the completion item is selected by any letter, so the list is not filtered by the item is accepted when typing 'g'. Please set it to proper value again.
Yes! My bad. I though the more the letters in the field, the better is the search criteria on key press. This has resolved my problem. Thank you very much.