问题
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