Package com.jidesoft.swing

Examples of com.jidesoft.swing.FolderChooser.showOpenDialog()


      fc.setAvailableButtons(FolderChooser.BUTTON_ALL);
      fc.setMultiSelectionEnabled(multiple);
      fc.setDialogTitle("");
     
      // show it
      int result = fc.showOpenDialog(null);
      if (result == FolderChooser.APPROVE_OPTION) {
        // collect & save
        List<String> s = fc.getRecentList();
        s.add(0, fc.getSelectedFile().getAbsolutePath());
        if (s.size() >= 10) {
View Full Code Here


      if (filter != null) {
        fc.setFileFilter(filter);
      }
     
      // In response to a button click:
      final int returnVal = fc.showOpenDialog(null);
      if (returnVal == JFileChooser.APPROVE_OPTION) {
        return fc.getSelectedFiles();
      } else {
        return new File[] {};
      }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.