Multiple Files selection

Hello all,
I want to know about “File Dialog.vi” in more details. Please help me.
When I’m selecting 50 or 100 files then its working fine. But When I’m selecting more no.of files then it’s throwing Error message and also it’s taking more time.
For your information I selected around 1500 files.
BR,
Munna
Munna

I'm using JDK 1.3.1_04, so you think that the behaviour describeb is a bug of the JFileChooser? So, do u know a way to correct that bug? Do u know any other classes that I could use instead of the JFileChooser?
Thanks

Similar Messages

  • The file size of selected file in input file control is shown as 0 for multiple file selection in Safari 5.1

    The file size of selected file in input file control is shown as 0 for multiple file selection in Safari 5.1. If you select single file, then it is able to return file size correctly. However, if you select multiple files, then the file size of each of the selected file is always returned as 0 from javascript. This works correctly in Safari 4.0 but it does not work in Safari 5.1.
    How do I get the correct file size in Safari 5.1 ?

    If you want to post (or send me) a link to the lrcat file, I'd take a look at it for you, and give you a break-down what's consuming all the bytes. But it might be fun to learn how to do that yourself (e.g. using SQL). I use SQLiteSpy, but other people have their favorites.. (or you can use a command-line client if you prefer..). One way: just run "drop table "{table-name}" on each table then look at filesize (do this to a copy, not the real thing).
    Anyway, it's hard to imagine keywords and captions etc. taking much of the space, since even if you had 1000 10-character words of text metadata per photo average that still only adds up to 117MB, which isn't a substantial portion of that 8G you're seeing occupied.
    Anyway, if you've painted the heck out of most of them and not cleared dev history, that'll do it - that's where I'd put my money too...
    One thing to consider to keep file-size down:
    ===================================
    * After reaching a milestone in your editing, take a snapshot then clear edit history, or the top part of it anyway (e.g. leave the import step), using a preset like:
    Clear Edit History.lrtemplate
    s = {
        id = "E36E8CB3-B52B-41AC-8FA9-1989FAFD5223",
        internalName = "No Edit",
        title = "Clear Edit History",
        type = "Develop",
        value = {
            settings = {
                NoEdit = true,
            uuid = "34402820-B470-4D5B-9369-0502F2176B7F",
        version = 0,
    (that's my most frequently used preset, by far ;-})
    PS - I've written a plugin called DevHistoryEditor, which can auto-consolidate steps and reduce catalog size - it's a bit cumbersome to use a.t.m. but in case you're interested...
    Rob

  • JfileChooser multiple file selection

    hi everyone....
    i have an aplication with a Jfile chooser coded like this:
    var chooser = new JFileChooser();
    chooser.addChoosableFileFilter(
      FileFilter {
        override function getDescription() {
          "Video {extensions.toString()}"
        override function accept(file) {
          if (file.isDirectory())
            return true;
          def name = file.getName().toLowerCase();
          for (extension in extensions)
            if (name.endsWith(extension))
              return true;
          return false
    chooser.setAcceptAllFileFilterUsed(false);and a image that calls the file chooser like this:
    ImageView {//load button
                var image = 0;
                image : bind boton1[image]
                transforms : bind [Transform.translate(0,770),
                                   Transform.scale(0.7,0.6),]
                onMouseClicked: function( e ) {
                if (JFileChooser.APPROVE_OPTION == chooser.showOpenDialog(null)) {
                    source = chooser.getSelectedFile().toURI().toString(); }
                                              }but now i want set the file chooser for multiple file selections and save those urls in to an array...
    i added: //chooser.setMultiSelectionEnabled(true); and tried to save in to an array: insert chooser.getSelectedFiles()toString(); into myarray
    but it only delivers unexpected data that can be readed...
    please helpme with this one....
    Already Thanks...
    Edited by: darwinbotlee on 27/02/2010 06:40 PM

    Hi, change the insert statement:
      var a = for(f in chooser.getSelectedFiles()) {
            f.getName();
    insert a  into myarray ;   

  • How can I allow multiple file selections ?

    I used FileReference's browse function,
    But it's only can select one file at the same time.
    How can I allow multiple file selections ?
    Thanks a lot.

    You need a FileReferenceList object instead. See the Help for
    FileReferenceList, it has good examples.
    Dave -
    Head Developer
    http://www.blurredistinction.com
    Adobe Community Expert
    http://www.adobe.com/communities/experts/

  • Anyone know how to measure multiple file selections in a finder window?

    Hello,
    I have a flash drive that holds 8gbs. I have an enormous folder of images I am going to start passing to my buddy on the flash drive. Anybody know how I can select multiple files and know how big the selection will be prior to dragging them to the 8gb drive?
    Thank!
    Kirk

    Shift-click or command-click to select them, and then press the Option, Command, and I keys; the information in the window will change as the selection changes.
    (52489)

  • Dragging multiple file selections

    After I have highlighted a group of files to be moved and then attempt to drag them another location, the highlighted selection goes back to just the single file on which I have clicked. In other words, I cannot drag multiple files with the mouse. Is this a bug in Leopard, or have the rules changed?

    One trick that seems to work best for me is when I am trying to drag any number of files is to grab it by the icon and then drag. If I catch it anywhere else I have trouble getting repeatable drag and drops with multiple files.

  • Does awt FileDialog allows multiple file selection?

    i m trying to select multiple files using FileDialog, but it does not allow me? why? is it possible to select multiple files using FileDialog?

    Something you might want to try. Turn off the auto download. Put your card into the reader. Library Module, click on Import. Select Choose Files rather than the card drive itself. Now you have a navagatable window from which you may use to view thumbnails or names. Use the traditional CTRL + Click, or Shift + Click to select your files and click on Open. Your Import window appears for you to make your Import choices like normal.

  • FileDialog with multiple files select

    Hi,
    I'm new to java programming.
    I would like to write a script that brings a filddialog window with ability select multiple files.
    I tried awt FileDialog, I could able to select only a single file.
    Any code sample would be much appreciated.
    Thanks.

    I am not sure it is possible in AWT FileDialog.
    But If you use Swing's JFileChooser, It is certainly possible.

  • How to tell if multiple files are selected when they are opened in windows

    Hello, can someone help me, my question is how to tell if multiple file selections were made when they were opened (right-click->open). Through modifying the registry I already have my Java program start up when a file with specific extension is double-clicked.
    The problem is when multiple files are opened at the same time, an instance of java program is created and run for each of the selected files. Ideally I would like it so that only one instance of java program is run, regardless of the number of selections.
    When you try it with Microsoft media player or winamp for example, it seems that only one process is created and run (I don't see many processes spawning when I watch it using task manager). Maybe this is more of Windows issue rather than Java programming issue. Any help is appreciated.

    If anybody wants to know, this can be solved by either 1) using DDE 2) using DropTarget (from Windows) 3) make a light-weight EXE dispatcher (eg. in C), and use file to have IPC between the dispatcher (which gets the filepath for each of the selections) and the java program. There can be other methods of course. Using the second option is the simplest but it requires WinXP and higher. I implemented it using option 3.. the downside of this is there's a warning message pop up when trying to open many (>20?) files at the same time by Windows. However, option 1 'seems' to have the same limitation. Having a java program created each time for each of the selections seems to be too slow, for viable option.

  • How do I use Finder to modify file details in multiple files

    I am new to the mac (OS10.7.4) having recently transitioned from Windows (and go way back to CPM - for those that remember).  I am trying to achieve through finder what I can do in windows explorer by selecting multiple files, selecting  properties and then selecting (and then modifying) details.  I tried the similar thing on Finder using Get Info instead of Properties but only ended up with multiple windows, one for each file selected (and had to close each one individually! ).  Tried 'option-command-I' on multiple selected files, it worked, but the common tags that I wanted to alter where not available for editing.  I can simply, but clumsily, achieve the outcome I want by cutting and pasting the files to a usb stick, making the modifications on the windows machine and pasting them back on the mac.     This should be a simple basic operating system function regardless of platform - advice on how to find/achieve it appreciated!

    I find it best to use small little apps to help modify many files. Just serach for what you want to change and more often then not, you find software that does what you need, often free too.
    For Music tags: check out the free program "TriTag" to do what you want:
    http://www.feedface.com/projects/tritag.html
    For Music conversion (say, from FLAC to Apple Lossless) or MP3 to whatever... Use "XLD" (free)
    http://download.cnet.com/X-Lossless-Decoder/3000-2140_4-189505.html
    Bonus: VLC (free download) - has the ability to convert wma audio files, which is amazing, it's rare to find mac software that will convert wma to mp3 - http://9thport.net/2010/07/28/using-os-x-to-convert-wma-to-mp3-for-free/
    For file renaming in batch, I use "Name Mangler" - 10 bucks, app store.
    It has a lot of pro features and is very useful.
    good luck.
    - James

  • Multiple file upload in jsp with out using �FILE� type filed.

    I have an applet that is used for multiple file selection, It allows drag and drop functionality also. The problem is once the user selects multiple files it has to get uploaded to the server. Since it�s not part of a file type component while submitting the form we won�t get the file contents.
    We can use multipart api for uploading files, but if the file selected by the user is not by the file type filed the file contents won�t come as part in the jsp submission and I can�t assign the file names selected by the user through the applet to any FILE (hidden ) type in jsp .
    Please give a solution�

    We can use multipart api for uploading files, but if the file selected by the user is not by the file type filed the file contents won’t come as part in the jsp submission and I can’t assign the file names selected by the user through the applet to any FILE (hidden ) type in jsp .Well i think thats a wrong notion which you have...
    you can very well get non-file type field data & file item data from a multipart form.
    Anyways,Letz checkout a simple example(refer to the below Code-snippet down below) which can do that task for us and it uses commons-fileupload & commons-io libraries.
    FileUpload.jsp
    ==========
    <form name="sampleForm" action="uploadAction" method="POST" enctype="multipart/form-data">
      File Name 1: <input type="text" name="fileName1" size="5" /> <br/>
      File: <input type="file" name="file1" id="file1" /> <br/>
      File Name 2: <input type="text" name="fileName2" size="5" /> <br/>
      File: <input type="file" name="file2" id="file2" /> <br/>
      File Name 3: <input type="text" name="fileName3" size="5" /> <br/>
      File: <input type="file" name="file3" id="file3"/> <br/>
      File Name 4: <input type="text" name="fileName4" size="5" /> <br/>
      File: <input type="file" name="file4" id="file4"/> <br/>
      <input type="submit" value="upload"/>
    </form>uploadAction method in (backingBean) :
    ==============================
    public void uploadAction(HttpServletRequest request,HttpServletResponse response)throws Exception{
          FileUploadUtils fuu = new FileUploadUtils(request);
          Map<String,FileItem> fileFields = fuu.getFileFiledsMap();
          Map<String,String> nonfileFields = fuu.getNonFileFiledsMap();
           String fileName1 =  nonfileFields.get("fileName1");
           FileItem file1 = fileFields.get("file1");       
           byte file1ContentBuffer[] = file1.get();
           String file1ContentType = file1.getContentType();
           InputStream file1ins = file1.getInputStream(); 
           file1.write(file1Name);
           String fileName2 =  nonfileFields.get("fileName2");
           FileItem file2 = fileFields.get("file2");
           byte file2ContentBuffer[] = file2.get();
           String file2ContentType = file2.getContentType();
           InputStream file2ins = file2.getInputStream();
           file2.write(file2Name);
    }FileUploadUtils.java:
    ===============
    import java.io.File;
    import java.io.FileOutputStream;
    import java.util.ArrayList;
    import java.util.Date;
    import java.util.Iterator;
    import java.util.List;
    import java.util.StringTokenizer;
    import java.util.Vector;
    import javax.servlet.http.HttpServletRequest;
    import org.apache.commons.fileupload.DiskFileUpload;
    import org.apache.commons.fileupload.FileItem;
    import com.gehcsr.utils.dao.DbQueryUtils;
    public class FileUploadUtils {
       private Map<String,FileItem> fileItemMap = null;
       private  Map<String,String> nFileItemMap = null;
       private HttpServletRequest request = null;
       public FileUploadUtils(HttpServletRequest request)throws Exception{
                   this.request = request;    
                   this.fileItemMap = new HashMap<String,FileItem>();
                   this.nFileItemMap = new HashMap<String,String>();
                   this.init();
       private void init() throws Exception{
          DiskFileUpload dfu  = null;
          List fileItems  = null;   
             try{
                   dfu = new DiskFileUpload();
                   dfu.setSizeMax(1000000);
                   dfu.setSizeThreshold(4096);
                   dfu.setRepositoryPath(System.getProperty(java.io.tmpdir));
                   fileItems = dfu.parseRequest(this.request);
                   if(dfu.isMultipartContent && fileItems != null){
                            Iterator iter =  fileItems.iterator();
                  while (iter.hasNext()) {
                       FileItem item = (FileItem) iter.next();           
                                  String fieldName = item.getFieldName(); 
                             if (!item.isFormField()){
                                              String fieldValue = item.toString();
                                               this.nFileItemMap.put(fieldName,fieldName); 
                                         }else
                                             this.fileItemMap.put(fieldName,item);                              
                    }catch(Exception exp){
                         exp.printStackTrace();
                         System.err.println(exp.getMessage());
                         throw new Exception(exp.getCause());
                    } finally{
                       fileItems = null;
                       dfu = null; 
             public  Map<String,FileItem>  getFileFiledsMap(){
                    return this.getFileFiledsMap;
             public Map<String,String> getNonFileFiledsMap(){
                   return this.nFileItemMap;
    NOTE:* Do not forget to add latest versions of commons-fileupload.jar & commons-io.jar in your classpath.You might get few warings due some issues with regards to generics please neglect them.
    and it is not certain that you ought to use commons libraries for this there are many other alternative solutions available by which you can implement a similar functionality.
    Hope this might help !!! if that does do not forget to assign/share duke dollars which you have promised :)
    REGARDS,
    RaHuL

  • JFileChooser Multi file selection problem

    I am using jdk 1.4.2 .
    I tried enabling multiple file selection using JFileChooser but am not able to do so..
    following is the code extract..
    JFileChooser chooser = new JFileChooser();
    int returnVal = chooser.showOpenDialog(RTLogger.this);
    if(returnVal == CougarFileChooser.APPROVE_OPTION)
    chooser.setMultiSelectionEnabled(true);
    if(chooser.isMultiSelectionEnabled())
         System.out.println("multi enabled");//message is displayed
    File [ ] files = chooser.getSelectedFiles();
    System.out.println("the file length is " + files .length);
    //length is zero and not able to select multiple files
    }

    You have to set the option to allow multiple selections before you call showOpenDialog.

  • Need multiplt file select in LabVIEW 6.1

    I would like to select multiplt files at a time using shift key. I upgraded to LabVIEW 6.1 this feature is not available.

    We have an example program in our database that does this:
    Multiple File Selection Dialog Box
    You can either select file(s) (select multiple by holding down the shift key while selecting) and click on the Add button to add them to your selected files list, or you can double click any individual file to add it.
    Ray Kong
    Applications Engineer
    National Instruments

  • Flash Player on Android, select multiple files

    We have a web app that uses a flash uploader and it works on Android phones and tablets but it will not let us select multiple files on these devices. Is this possible or is there a trick to get these devices to allow us to select more than one file at a time?
    Thank you,
    Keith

    Flash Player for Android is no longer available. For more information, see here:
    http://blogs.adobe.com/flashplayer/2012/06/flash-player-and-android-up date.html
    Android users can still download and install Flash Player from the Archived Flash Player Versions page on the Adobe website.
    Please refer : http://forums.adobe.com/thread/1061194
    Please see this page for a list of all certified devices:Flash Player Certified Devices

  • How do you select multiple files on a macbook pro?

    Can anyone tell me how to select multiple files at one time?  I am so frustrated with the way macbook pro works that I really regret buying it.  I hate that you can't select multiple files, and that my contact stuff keeps changing.  It is certainly not like I was told...that I would never want to use a PC again.  I would not buy another apple computer.  I spent a lot of money to NOT be able to do things that I have always done with ease.  Every time I think I have something figured out, it doesn't work the next time I go to use it in another program.  If anyone has an answer to this, I would sure appreciate it. 
    And all of these so called wonderful updates to the operating system on all mac products have left me frustrated and liking my apple products far less than I did before.  On my iphone I had to make the texts just huge to even be able to see the white writing on a blue background.  Not sure who made these designs, but from my perspective, I can tell you they certainly weren't thinking about being user friendly in any way when they did it.  So disappointed in all of my devices!  I do not enjoy using my computer, ipad, or iphone even close to what I did before.

    This is some information on the Finder.
    http://support.apple.com/kb/ht2470
    To select multiple files you can use the shift key with the mouse if they are in a contiguous list or the CMD key with the mouse if you have breaks in that list. You can also use the mouse to drag over the files you want to select.
    The Macs are easy to use, I have used many versions of Windows, Linux and other operating systems and I find OS X is far the easiest, but that is me.
    There are many instructional videos and texts on Apples web site and if you are near to an Apple store they do classes to help.
    Hope you get used to it.

Maybe you are looking for

  • In Elements 13, how do I turn off default setting that sends my usage info to Adobe?

    In Elements 13, how do I turn off default setting that sends my usage info to Adobe? Vendors of proprietary software want to track everything you do.  Adobe says that it is possible to turn off sending info to them, but doesn't include any info on ho

  • How to lock a folder?

    Hello, I looking to lock a certain folder on my hard drive so that nobody other than myself can get into it. Is there a way that I can do this? Thanks in advance for your help. Steve

  • Picture Game Help

    Hey so i am trying to make a picture game where you have to click the mouse picture to do well, and the taz picture you mess up. I will add my code here, here are the images that are needed: http://www.geocities.com/CollegePark/Lounge/6707/taz.jpg ht

  • Oracle WCI - How to make Contact page in a tabular form in WCI

    Hii All, Im using Oracle WebCenter Interaction . As you all know that in websites we have a section called Contact-Us under whcih we can provide few contact details. Im using a portal which has been made by using WCI so i just wanted to make a table

  • Lenovo G550 boot up

    Hello mates, I am using the Lenovo G550. It is brand new. i uninstalled the Vista and setup XP SP3 on it. Everything works fine but takes a HELL lot of time to boot up. Also when I uninstalled Vista and installed XP, I wanted to change the drives and