无法找到某些 javafx 包(例如“table”)
我尝试开始使用带有 java7 和 javafx 的 Netbeans 来处理一些 GUI 项目。 不幸的是,当尝试运行代码时,我在以下链接中发现(用于创建表), Netbeans 找不到某些软件包(附件!) 我已经从下面的链接下载了最新的 Netbean 和最新的 JavaFX with java 7。
有谁知道如何创建这些表?
下载链接: http://www.oracle.com/technetwork/java/javafx/downloads /index.html
我从以下位置复制了代码: http://www.adam-bien.com/roller/abien/entry/hello_javafx_2_a_tableview
并且找不到以下软件包:
import javafx.application.Launcher;
import javafx.collections.Sequence;
import javafx.scene.control.table.TableColumn;
import javafx.scene.control.table.TableView;
import javafx.scene.control.table.model.SequenceTableModel;
谢谢, 阿维亚德
I tried to start working with Netbeans with java7 and javafx for some GUI project.
Unfortunately, when try to run code I found in the following link (for creating table),
the Netbeans doesn't find some packages (attached!)
I already download the newest Netbean and the newest JavaFX with java 7 from the link below.
Does any one know how can I create those tables?
The download link:
http://www.oracle.com/technetwork/java/javafx/downloads/index.html
I copied the code from:
http://www.adam-bien.com/roller/abien/entry/hello_javafx_2_a_tableview
and the following packages cannot be found:
import javafx.application.Launcher;
import javafx.collections.Sequence;
import javafx.scene.control.table.TableColumn;
import javafx.scene.control.table.TableView;
import javafx.scene.control.table.model.SequenceTableModel;
Thank you,
Aviad
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看来您没有使用
JavaFX
NB 项目。接下来尝试:文件 -> 新项目 -> JavaFX/JavaFX 应用程序
。然后将您的文件复制到该项目中。It seems you didn't use
JavaFX
NB project. Try next:File->New Project->JavaFX/JavaFX Application
. Then copy your files to this project.我的解决方案是卸载java、netbeans,然后按顺序重新安装java、netbeans。 Netbeans 存在自我更新问题。更新到 javafx 2.2 时我遇到了同样的问题。
My solution was to uninstall java, netbeans and then reinstall java, netbeans in that order. Netbeans has issues updating itself. I had the same issue when updating to javafx 2.2.