【发布时间】:2012-11-18 01:05:45
【问题描述】:
我想在 JavaFX FileChooser 中设置文件过滤器,但找不到方法。
我的代码:
FileChooser fc = new FileChooser();
fc.setTitle("My File Chooser");
File f = fc.showOpenDialog(primaryStage);
System.out.println(f);
【问题讨论】:
-
我没有经验,但听起来和这个线程中的代码类似:forums.oracle.com/forums/thread.jspa?messageID=10333202
标签: java user-interface javafx-2 filechooser