Netbeans7.1 & JavaFX 2.0 - FXML code completion doesn't work

纵饮孤独 提交于 2019-12-13 12:09:04

问题


I started learning JavaFX 2.0 and installed Netbeans 7.1, java 7.02 SDK (wich contains JavaFX 2). Everything seems to work, the example projects compile and run fine.

My problem is: Code completition doesn't work for FXML files. I press ctrl+space and it shows "No suggestions" every time. The same for tags and attributes.

Does anyone know what could be the problem?


回答1:


You can still show autocomplete menu for attributes by pointing the cursor just beginning (or middle to show sublist) of the existing attribute and hitting ctrl+space. Also while writing tags, Netbeans suggests even automatically puts closing tags for you. At any point in the FXML file, if you see "No suggestions", just hit "Esc" and try again actions mentioned above :).



来源:https://stackoverflow.com/questions/9627163/netbeans7-1-javafx-2-0-fxml-code-completion-doesnt-work

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!