Netbeans7.1和JavaFX 2.0-FXML代码完成不起作用 [英] Netbeans7.1 & JavaFX 2.0 - FXML code completion doesn't work

查看:105
本文介绍了Netbeans7.1和JavaFX 2.0-FXML代码完成不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始学习JavaFX 2.0,并安装了Netbeans 7.1,java 7.02 SDK(其中包含JavaFX 2).一切似乎都正常,示例项目可以编译并正常运行.

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.

我的问题是:代码补全不适用于FXML文件.我按Ctrl +空格键,每次都显示无建议".标签和属性相同.

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?

推荐答案

您仍然可以通过将光标指向现有属性的开头(或显示子列表的中间)并按ctrl + space来显示属性的自动完成菜单.同样,在编写标签时,Netbeans建议甚至自动为您放置结束标签.在FXML文件中的任何时候,如果看到没有建议",只需点击"Esc",然后重试上述操作:).

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 :).

这篇关于Netbeans7.1和JavaFX 2.0-FXML代码完成不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆