【发布时间】:2011-12-12 01:36:58
【问题描述】:
我正在使用 javaFX 2.0 制作应用程序。我想添加 fileExplorer(在 http://www.java-forums.org/blogs/duvanslabbert/92-java-file-explorer.html 上找到),因为文件资源管理器是 swing。
在主阶段,组根我无法添加文件资源管理器,因为它不是 javafx 节点
FileExplorer fe = new FileExplorer(new File("D:/"));
myVbox.getChildren().add(fe);
我得到这个错误:
The method add(Node) in the type List<Node> is not applicable for the arguments (FileExplorer)
【问题讨论】:
标签: java swing javafx javafx-2