无法找到某些 javafx 包(例如“table”)

发布于 2024-12-27 01:58:40 字数 843 浏览 2 评论 0原文

我尝试开始使用带有 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

青朷 2025-01-03 01:58:40

看来您没有使用 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.

毅然前行 2025-01-03 01:58:40

我的解决方案是卸载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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文