Browse Source

REPORT-55072 设计器内文件选择器替换为原生的

feature/10.0
Henry.Wang 3 years ago
parent
commit
468b6600e8
  1. 18
      designer-base/src/main/java/com/fr/design/gui/ifilechooser/JavaFxNativeFileChooser.java

18
designer-base/src/main/java/com/fr/design/gui/ifilechooser/JavaFxNativeFileChooser.java

@ -155,22 +155,4 @@ public class JavaFxNativeFileChooser implements FileChooserProvider {
this.filters = builder.filters;
this.currentDirectory = builder.currentDirectory;
}
public static void main(String[] args) {
FileChooserProvider fileChooserProvider =
new Builder().
fileSelectionMode(FileSelectionMode.DIR).
title("hhh").
filters(new FileChooser.ExtensionFilter[]{
new FileChooser.ExtensionFilter("TXT", "*.txt"),
new FileChooser.ExtensionFilter("PNG", "*.png")}).
currentDirectory(new File("D://")).
build();
fileChooserProvider.showDialog(null);
System.out.println(fileChooserProvider.getSelectedFiles().length);
System.out.println(fileChooserProvider.getSelectedFile());
}
}
Loading…
Cancel
Save