我正在使用 javaFX 2.0 制作应用程序。鉴于文件资源管理器是摆动的,我想添加 fileExplorer(在http://www.java-forums.org/blogs/duvanslabbert/92- java-file-explorer.html 上找到)。
在主要阶段,组根我无法添加文件资源管理器,因为它不是 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)