Browse for folder

Hi all,
I was using "JFileChooser" for selecting a directory by setting it's selection mode to "DIRECTORIES_ONLY".
But, we noticed that the users are getting a little confused with the "JFileChooser" when they have to select a directory. And Windows OS uses something called the "Browse for folder" control which shows all the directories in a Tree structure and the users are less confused by this component.
So, is there any swing component which looks like the "Browse for folder"???
Thank you.

The GET_FILE_NAME built-in allows you to search for a directory as well as a file - check out the on-line help for it.

Similar Messages

  • Problem with Copy To/Browse for Folder

    Don't know when it started doing this, but now when I right-click and select Copy To and select Browse for Folder it only shows me folders that are under my W7 user name.
    I need to get to my external drive, but it doesn't display Computer.
    Strange and very inconvenient.
    Looking for a solution.

    Hmm, can't imagine how my workspace would relate to what drives Bridge reads using the Copy To. My drives show up just fine in the folders view. And also in the Export to dialog.
    I keep my images on an external drive.
    Folders that are not under my user name on C drive, but still on another drive show up in the recent ones in Copy To and access just fine.
    So it makes no sense that Copy To>Browse for Folder only displays my drive C Windows user folder on that other drive.

  • Browse For Folder Dialog

    I am trying to display a "Browse For Folder" dialog
    Note that this is not the JFileChooser with the DIRECTORIES_ONLY flag
    It is this one
    http://i.msdn.microsoft.com/Bb964683.ed6b0efa-d190-4995-861d-abc3571b06ac(en-us,office.12).gif
    There have been several posts over the years on these forums asking similar questions without answers.
    I can't believe that noone has ever made one since so many people want this functionality.
    There doesn't appear to be one in the Swing Package.
    Does anyone know of a free jar that contains this?

    JDirectoryChooser
    And while we are with choosers, we might also want to try the folowing choosers for colors and dates:
    [Quick Color Chooser|https://colorchooser.dev.java.net/]
    [MultiDateChooser |http://www.javafr.com/codes/SELECTEUR-DATES-MULTIPLES_48407.aspx] (to download the zip you must be connected with your CodeS-SourceS account wich is totally free)
    Edited by: Andre_Uhres on Feb 23, 2009 6:02 AM

  • Browse for folder button in JSP Page

    Trying to create a browse for folder button in a JSP page. Anybody with some ideas on how to do this? Applet, Bean, some other way? Has anybody done this before? Is it even possible?
    Thanks in advance!

    We have done it with Struts before. Also seen it done with javascript.

  • Browse for Folder function for PHP?

    can anyone recommend a good plug-in to implement the Windows
    "browse for folder"
    function in php? I am looking for something like the menu you
    get when you want
    to select a folder in theDreamweaver "Find and replace"
    function.
    Clancy

    Look on Gary White's site -
    http://www.apptools.com - for
    his tutorial on
    how to create a dynamic sitemap in PHP. With modifications,
    that's exactly
    what you need.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Clancy" <[email protected]> wrote in message
    news:[email protected]...
    > "SnakEyez02" <[email protected]> wrote:
    >
    >>My suggestion would be to head over to
    www.hotscripts.com and take a look
    >>at
    >>the File Management section of the PHP scripts.
    >>
    >> Any file script will open a window to browse for
    files, but there are
    >> scripts
    >>which make the process as easy as possible on the end
    user and can do what
    >>you
    >>need to do with the file.
    >>
    >> If you provide more detail about what you need the
    script to do someone
    >> can
    >>probably recommend a good script to accomplish the
    job.
    >
    > Thank you.
    >
    > I have been working on several similar programs to
    manipulate data files,
    > and
    > have got them working pretty well. The one serious
    shortcoming is in the
    > procedure for specifying which file to read. In the
    current version the
    > initial
    > menu has a simple text entry box for the user to enter
    the name of the
    > data file
    > to load. What I want to do is to extend the
    functionality of this, so
    > that the
    > user can browse the directory to find a particular file
    to load.
    >
    > I want to replace the current Text box with something
    that looks like a
    > Select
    > box, but when you click the arrow at the right you get
    the directory tree,
    > with
    > each directory preceded by a + or - symbol which you can
    click to show or
    > hide
    > the subdirectories and the files in the directory. The
    window would have
    > to
    > have vertical and probably horizontal scroll bars, so
    that you could find
    > a
    > particular file you wanted, then click it to highlight
    it, and finally
    > close the
    > window and load the file.
    >
    > So what I want is basically a Select box, but with
    functionality somewhere
    > between Dreamweaver's 'Files' menu, and Disc Explorers
    'Folders' menu.
    > For this
    > application I only want to be able to select a
    particular file to load,
    > but in
    > the future it might also be nice to have the ability to
    drag and drop
    > files, as
    > in Windows Disc Explorer.
    >
    >
    > Clancy

  • "Browse for Folder" Issue

    Has anyone else had the problem where they cannot go to any subfolders in their "Browse for Folder" dialog box?
    I have all of my photos organized by year and then by month.
    I have made changes to various photos and want to save them. However, when I go to export my changes, I can only export to my "Main" folder. When I click on the plus (+) sign, nothing happens besides the plus (+) sign disappearing. Nothing locks up.
    For now, I am saving to my main folder and then manually moving them to the folder I want them in.
    Thanks,
    -Lou

    All I'm trying to do is find a folder to export my modified photo to.
    For example, I pull up photo DSN_5678. It was imported from My Pictures\2007\06-June folder. I make my changes to the image and now want to "save" the changes so I can have it available for other users on my network. (NOTE: Ignore the network comment since I use another program to backup my pictures to my network from my local hard drive. I keep all my pictures on my local hard drive and back up to a server for everyone else to see and use.)
    When I click on Export, the dialogue box comes up just as it should.
    I then click on the "Choose..." button in order to change the directory. When I go to "choose" the folder I want to save/export the image to, it doesn't allow me to select any other folders than the ones listed in the "Browse for Folder" dialogue box (My Computer, My Pictures, Shared Documents and a few others that I do not want my pictures saved to). Everytime I click on the plus (+) sign to expand the tree, nothing happens beside the plus (+) sign disappearing.
    Any suggestions?

  • Export presets now direct me to the "Browse For Folder" dialog box

    Suddenly Lightroom will not remember the name of the "export to" folder when I use my export presets in certain ways, even though the name of the "export to" folder appears in the "Export" dialog box. The prolem exists in Library and Develop modules. This is what's happening…
    IF I CLICK ON "FILE":
    1. And choose the "Export" option, LR displays the Export dialog box, from which I can select an user preset and export a JPG file to the proper folder, as intended. (OK) 
    2. And choose the "Export with Previous" option, LR exports the JPG file immediately to the proper folder. (OK) 
    3. And I choose the "Export with Preset option, LR displays the menu of Lightroom presets and user presets, but clicking on a user preset displays the "Browse for folder" dialog box from which I must manually browse to the export folder before a file can be exported. (NOT OK) 
    IF I RIGHT-CLICK ON THE IMAGE:
    LR displays a menu containing these options: Export, Export with Previous, the Lightroom presets, and my user presets. 
    4. If I then choose "Export," LR works properly---same as example 1 above. (OK) 
    5. If I then choose "Export with Previous," LR exports the JPG file immediately. (OK) 
    6. If I then choose one of my presets, LR does not work properly: it acts as it does in example 3 above. (NOT OK) 
    BACKGROUND:
    I have been using these presets for almost a year without fail---they're great! Two days ago I moved my Lightroom catalog to a new external drive. I also renamed the "export to" folder (that new name is stored in the "Export" dialog box). 
    I sure would appreciate hearing from anyone on this because it's driving me crazy. Thanks.

    SOLUTION FOUND:
    I created yet another folder for storing exported JPGs. Then for each export preset I used the "Browse For Folder" dialog to point that preset to that new folder. All presets now work as before. This fix was tolerable for the seven presets I have, but a large number of presets would have made it a real chore.

  • Browse for Folder takes 3-1/2 minutes!

    I am using LR3.3.  Everything seems to work well except when I want to export a photo.  I choose "Export To  ---> Specific Folder"  and then it takes a full 3-1/2 minutes (not seconds, but minutes), which is like an eternity, for the "Browse to Folder" dialog box to pop up. This happens every time. I appreciate your help.

    UPDATE:   I remembered that when I am at home and want to start my computer, I have to disconnect the internet cable or it takes almost 5 minutes to start Windows.  The IT guy in my office told me that this is because the computer is trying, many times, to connect to the office server before giving up and finally allowing Windows to start.  So in a moment of inspiration, I turned off the wireless on my computer, started Lightroom and attempted to export a photo.  This time, the folder box appeared as fast as lightening!   This is great, except now I must disconnect from the internet each time.  Do you have any ideas?In any case I'm feeling good that we're making progress on this conundrum.

  • Browse for Folder path.

    Hi,
    I have a requirement to store a directory path in a database, and would like the user to be able to browse to a folder and select it, so that the full path can be stored in a table.
    I plan to have the initial browse point default to a network drive and parent directory, under which the user will navigate and select the appropriate child directory, probably at least 2 levels down.
    The user will be entering data via a form. I had envisaged using a display only field to show the path, (blank for new records), and then having a 'Browse' button to select the directory, before submitting the form.
    The question is how to achieve this. The File Browse item type is nearly there, but is obviously more concerned with uploading files. I just want to select and store a directory path.
    Any ideas on how I can achieve this please. I have been trying to get a button to run some java script to open up a dialogue and return a directory path, without success, and I am not sure this is the best approach.
    Thanks in advance
    Mark

    For security/privacy reasons recent versions of browsers by default do not send local file path information from File Browse items to the server, nor expose the file path in the control's JavaScript methods. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 still yield the path in Windows format. IE8 and Opera have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\".
    Changes to IE's security config setting “Include local directory path when uploading files” enables the path to be exposed in IE8, but unless you're working in an intranet environment where: IE is the only browser used; it's possible to make remote changes to this setting on every desktop; and this won't break/expose anything else, then you'd be strongly advised to rethink this requirement.
    For more information see:
    http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018980.html
    http://blogs.msdn.com/ie/archive/2009/03/20/rtm-platform-changes.aspx
    I have a requirement to store a directory path in a database, and would like the user to be able to browse to a folder and select it, so that the full path can be stored in a table.If you explain what this requirement is then possibly some alternative approaches can be suggested that don't involve storing file paths.

  • How to browse for the folder

    Hi,
    I want to browse for the folder instead of a particular file in a JSP page.
    Can I use applet for this purpose?
    if yes what is the proper way/

    How about "browse for folder" dialog? Can
    html/javascript do that?Maybe. You should ask in a JavaScript forum.
    Java != JavaScript

  • ActionScript 3 Air Desktop Application Browse For Local Directory Popup

    Hello all,
    I am developing a desktop Air program that will include a browse button that allows the user to click, and once the user clicks the button, I am wanting a pop-up window to appear that allows the user to browse to a writable folder/directory on his computer. Once the user selects a folder in the window, I want to grab that directory location and store it. The storing part I know how to do, but how to create this pop-up window or dialog, I do not have a clue where to start.
    What's the simplest way to go about this?
    Edit:
    I see I can use this example from this site, but I don't know where to grab the directory the user selected: actionscript 3 - How to create "Browse for folder" dialog in Adobe FLEX? - Stack Overflow
    var f : File = new File;
    f.addEventListener(Event.SELECT, onFolderSelected);
    f.browseForDirectory("Choose a directory");

    This seems to be supported by AIR only.
    What gives you the impression?
    AIR-only functions are marked with a fancy AIR logo
    (like the first one in this list: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/images/sprite-index.png )
    and getData doesn`t have it, so it should work without problems in the "normal" Flash Player if you follow the recepy:
    Note for Flash Player applications: In Flash Player 10, a paste operation from the clipboard first requires a user event (such as a keyboard shortcut for the Paste command or a mouse click on the Paste command in a context menu). Clipboard.getData() will return the contents of the clipboard only if the InteractiveObject has received and is acting on a paste event. Calling Clipboard.getData() under any other circumstances will be unsuccessful.

  • Scripting: browse for data files in a folder and all subfolders below

    Hello,
    i'm looking for a command to search for data files (*.dat) in a folder and all subfolders below.
    I checked out command DirListGet. This command only search in the declared folder and not in the subfolders below.
    Anyone an idea?
    I don't want to use a loop-structure for finding subfolders and browse for the data files.
    Mr. Buddy

    dim result : result = DirListGet("C:\tmp", "*.dat", "filename", "FullFilenamesRecursive")
    dim fl : for each fl in result
    MsgBox fl
    Next
    Works fine for me and even recursive.
    Alternatively but with mucg more effort and the same result.
    Option Explicit 'Forces the explicit declaration of all the variables in a script.
    dim folderPath : folderPath = "C:\tmp"
    dim files : files = GetFileListRecursive(folderPath)
    dim fl : for each fl in files
    MsgBox fl
    Next
    Function GetFileListRecursive(folderPath)
    dim fso : Set fso = CreateObject("Scripting.FileSystemObject")
    dim results : results = Array()
    GetFiles fso, folderPath, results
    GetFileListRecursive = results
    End Function
    Sub GetFiles(fso, folderPath, results)
    dim folderObj : Set folderObj = fso.GetFolder(folderPath)
    dim f : for Each f In folderObj.Files
    if(0 = StrComp(fso.GetExtensionName(f), "dat", 1)) then
    dim index : index = ubound(results) + 1
    redim Preserve results(index)
    results(index) = f.Path
    End If
    next
    dim d : for Each d In folderObj.SubFolders
    GetFiles fso, d.Path, results
    next
    End sub

  • How to browse for a folder with ABAP WEB DYNPRO

    Hi,
    I want to browse for a folder in my local file system with ABAP
    WEB DYNPRO. I am looking for a functionality which the function module
    TMP_GUI_BROWSE_FOR_FOLDER gives.
    Regards,
    Vinay

    HI Karl
    Good evening, I am Maruti from London. I would like to paractise ABAP WebDynpro.I am not sure which Vesrion of SAP R/3 supports for ABAP WebDynpro applications. Can you please suggest me .
    Thank you
    Maruti
    [email protected]

  • What is the method for folder-browsing and selecting a non media file type in Android? [Air+AS3]

    Dear Gurus,
    Being a newbie, I have been searching hi & low for the method to browse and select non-media related file type in android.
    Besides the following these which I have reference from the AS3 Documentation (http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118666ade46-7fe4.html#WS5b3cc c516d4fbf351e63e3d118676a4c56-7ff0)
    var fileToOpen = File.documentsDirectory.resolvePath("");
                                  selectFile(fileToOpen);
                                  function selectFile(root:File):void
                                                 //var txtFilter:FileFilter = new FileFilter ("3D Model File", "*.obj; *.3ds;*.awd");
                                                 root.browseForOpen("Open",null);
                                                 root.addEventListener(Event.SELECT, selectedFile);
                                  function selectedFile(e:Event):void
                                                 trace(fileToOpen.nativePath + " file selected");
    I have went through the following threads yet find no clear workable solution to it.  The closest reference is written in Flex MXML, and I have no luck for converting it to AS3 as there are several properties which I can't get it right.
    http://forums.adobe.com/thread/943887 | http://forums.adobe.com/message/4107990#4107990 | http://forums.adobe.com/message/4548154
    Someone did mention some possible solutions through ANE but it is just too far beyond.  Even, the closest on-the-shelf solution of ANE by http://myappsnippet.com/file-browser-air-extension/ only work best to an extent and not truely "native" as the UI is not default from Android.  It has workable I/O but poor usability; you can't skin it.
    Is there any other workaround solution to this general I/O question?  I would love to hear from everyone here.

    The short answer to my knowledge is there is nothing you can invoke from AIR to open an OS-level dialog to browse/select a file. All implementations typically are people writing their own browser. They crawl the folders/files recursively and write their own display for the files. You can see a few on SO:
    http://stackoverflow.com/questions/12255418/as3-air-browse-for-file-on-sd-card
    http://stackoverflow.com/questions/12257626/as3-get-zip-file-on-phone-from-app-file-path-t hen-unzip
    It's not to terribly hard to code something like this (especially with that starter code). Otherwise, like you found, an on-the-shelf ANE is the only way I believe you can invoke the Android Intent for a file dialog. At that point skinning won't really be terribly easy given the nature of Android users who are completely allowed to customize their UI top to bottom.
    The safest bet is just let that posted code recurse and find the files you tell it to while displaying the list to the user. You can use some pre-written GPU-level lists that you can skin yourself using FeathersUI:
    http://www.feathersui.com (uses Starling)
    Or you can use one of the Flash Pro List components which will be quite a bit slower being they're not GPU optimized like some Flex Spark components.

  • Since upgrading to Firefox 5, I can no longer browse for attachments in AOL Webmail, and every time I open Firefox, it asks me if Mozilla can make changes to my hard drive. I've gone back to Internet Explorer.

    I upgraded to the latest version of Mozilla Firefox and ever since then, every time I open Firefox it asks me if I want to allow Mozilla to make changes to my hard drive. I have to answer "Yes" or else it won't open Firefox. Then when I open my AOL Webmail and try to browse for an attachment, it freezes up the browser window and I have to open the Task Manager to close Firefox. I have now gone back to Internet Explorer which does not have either one of these problems.

    Maybe just corrupted Disk Utility preferences ...
    Open the Finder. From the Finder menu bar click Go > Go to Folder
    Type or copy paste the following:
    ~/Library/Preferences/com.apple.DiskUtility.plist
    Click Go then move the com.apple.DiskUtility.plist file to the Trash.
    Restart your Mac then try creating a .dmg file.

Maybe you are looking for

  • Iphoto 11-import function is not working!!!!!

    just tried to download pics from trip from my camera to computer using iphoto 11....it downloads the pics...when i try to import nothing happens"says photos are being imported to photo library"...but it is not doing it!!!!.....

  • Wlss Echo service

    Has anyone ever used the echo service of Weblogic Sip Server??? I followed all instructions but it doesn't start on the Engine machine! They don't send heartbeat.

  • How to insert records from form to database?

    Hi all, i manage to make a connection from my form in adobe designer 7 to my database Oracle 9i, now i want to add some buttons to the form and navigate, delete or add data from my form to the database, anyone has ideas to accomplish this?, i made a

  • Error while installing oracle 10.2

    Hi, We are installing oracle 10.2 on windows 2003 SE, 64 bit OS. Installation went fine upto 99 % and at the final it gave the error that : " Failed to start the service, Error 0. The operation completed successfull." and when we saw the services lis

  • How do I get php files to render in Live View

    I'm using CS4 and have just found that I can't get php pages to render in live view.  I have no problems with html pages. Help