try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
DemoJavaFxStage test = new DemoJavaFxStage();
LinkedList<File> lista = new LinkedList<File>();
/* Example 1
*
* lista = test.showOpenFileDialogArrayList(false, "xml");
*
* lista = test.showOpenFileDialogLinkedList(false, "xml");
*
* Example 2 CustomFilter
*
* JFileChooser test1 = new JFileChooser();
*
* test1.addChoosableFileFilter(new FileNameExtensionFilter("", "mp4", "gif",
* "jpg"));
*
* lista = test.customShowOpenFileDialogArrayList(false, test1, "mp4,gif,jpg");
*
* lista = test.customShowOpenFileDialogLinkedList(false, test1, "mp4,gif,jpg");
*
*/
for (int i = 0; i < lista.size(); i++) {
System.out.println(lista.get(i).getAbsolutePath());
}
}
catch (Exception e1) {
}
showOpenFileDialogArrayList(true, "");
showOpenFileDialogLinkedList(true, "");showOpenFileDialogArrayList(false, "all");
showOpenFileDialogLinkedList(false, "all");showOpenFileDialogArrayList(false, "pdf");
showOpenFileDialogLinkedList(false, "pdf");showOpenFileDialogArrayList(false, "images");
showOpenFileDialogLinkedList(false, "images");showOpenFileDialogArrayList(false, "videos");
showOpenFileDialogLinkedList(false, "videos");