How can we make JFileChooser select Directories along with files

hi,
i need to provide a functionality in a program that user can select one or multiple directories (ideally a combination of directories and files both) through file chooser. can't figure out how to achieve that. there must be some way of doing it.
can anyone suggest something?
regards,
anshu

i guess i have found the answer. i can set the file chooser's file selection mode property to achieve the same
fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);but if you have any custom filters also set, it just crashes the VM.
but still i have a problem, if you type name of a network path (instead of choosing the directory view), file chooser can't resolve it. any ideas???
regards,
Anshu

Similar Messages

  • How can we make the selected Debug User Agent Netscape 7.0 stick?

    To get into http://gap.com I have to go to the Debug menu, choose User Agent and choose Netscape 7.0.
    It works Ok.
    Then I quit Safari. Get back into Safari. User Agent is back to Automatically Chosen, and gap.com to not working.
    How can we make the selected User Agent stick?
    Thanks,
    Roberto

    Unfortunately, I don't think there is an automated way of going about this. To begin with, the 'Debug' menu was never meant to be user accessible in the most common context.
    However, that said, you could lessen the pain by assigning a keyboard shortcut to the 'Netscape 7.0' menu-item in the 'Keyboard & Mouse' preference pane (under the 'Keyboard Shortcuts' tab). Hope that helps, somewhat.
    Yang

  • How can i make a picture from a video file with final cut pro x?

    how can i make a picture from a video file with final cut pro x?

    Go to the "share" menu, select "save current frame"

  • How can i make a coppy both side with my hp 6500a plus all in one?

    how can i make a both sides coppy with my hp 6500A plus all-in-one?

    For windows:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02773085&cc=us&dlc=en&lc=en&product=4083977&tmp...
    For MAC:
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c01935823&cc=us&dlc=en&lc=en&product=4083977&tmp...
    Although I am working on behalf of HP, I am speaking for myself and not for HP.
    Love Kudos! If you feel my post has helped you please click the White Kudos! Star just below my name : )
    If you feel my answer has fixed your problem please click 'Mark As Solution' and make it easier for others to find help quickly : )
    Happy Troubleshooting : )

  • How can I make a query by date with several TDMS files?

    Hi,
    I have a project that can write and read TDMS files everyday (a file for each day with date and time). There, I can import those files to excel (I choose a file and load it). But, I have a question: How can I make a query by date with those TDMS files? I'd like make a time stamp for start date and stop date, where I could compare the TDMS file dates and sum the values that are in the channels where these files are similar. For example, I save a file with "02/01/2013" name, in other day "03/01/2013", in other day "04/01/2013"... so, i'd like put in time stamp for start date "02/01/2013" file and to stop date "04/01/2013" file, than, sum all values that range with my TDMS files existing. How can I make that? 
    Thanks all,
    Val 

    Hello Val_Auto.
    You're Brazilian, no? Me too. = ^ - ^ =
    I converted VI to version of your LabVIEW (8.5). Is attached in this reply.
    This VI search all your TDMS in a range of dates and join them in a single TDMS. I hope this is what you wanted.
    Query TDMS is the main VI. The TDMS VI Search changes the date format that out from calendar control (which is DD / MM / YYYY) to DD-MM-YYYY. This is because you can't name files using "/". I chose "-" but, if necessary, you should change to keep the same format of your TDMS files.
    If you have any doubt as to its operation or how to make changes to adapt VI for your application, keep at your disposal.
    Thank you for your contact; I hope have helped you and succeed in your application.
    Wesley Rocha
    Application Engineer
    National Instruments Brazil
    Visite a nossa comunidade em PORTUGUÊS!!!
    Attachments:
    Query TDMS.vi ‏62 KB
    tdms search.vi ‏24 KB

  • HT201303 how can i make my photo be entered with a password

    how can i make my photo be entered with a password

    Photo?  You cannot separately password protect a photo.
    You can password protect your iPhone at Settings > General > Touch ID & Passcode

  • How can I make a graphic (scatter chart) with 1 "y", but multiple "x" (to make a multiple linear regression)?

    how can I make a graphic (scatter chart) with 1 "y", but multiple "x" (to make a multiple linear regression)?

    Émilie,
    The default for X-Y Charts is for X values not to be shared, so it's entirely possible for you to create X-Y pair sets that have common Y-values and independent X-values.
    This answer assumes, as always, that I properly interpreted your problem statement. A linear fit line for each pair set should satisfy.
    Jerry

  • How can I make Aperture share on Flickr with sRGB?

    Since I upgraded to 3.3, all photos I share on Flickr have an embedded Adobe RGB profile. Changing Web Export presets has no effect; neither does any other setting I can find. How can I make Aperture share the images with sRGB instead of Adobe RGB?

    If it is possible you do it by changing the print product country in the iPhoto preferences
    LN

  • HT204053 I just changed my apple ID, how can I make my icloud link up with my new ID?

    I just changed my apple ID, how can I make my icloud link up with my new ID?

    Did you simply change the primary email address of your existing AppleID at
    https://appleid.apple.com/
    Or, did you create a new AppleID.  If you created a new AppleID, then you cannot.  All you can do is use the iCloud with the old AppleID, or create a new iCloud account with the new AppleID.
    If you changed the primary email address of the exisitng AppleID, you may need to uninstall the iCloud account on the iPhone and reinstall it to get it to use the new email address and password (you won't loose anything, its just there a means of resetting the cached credentials associated with the iCloud account).

  • How can I make my PDF document a smaller file size

    I am using photoshop cs3. I have a 8.5 x 11 document. It includes images and text. It is 5.48 MB. How can I make to file size smaller??? This is for print so I need to keep the quality of the image.

    In the user guide (available as a searchable PDF on the install disc)
    Chapter 15: Saving and exporting images
    Then
    Saving files in Photoshop PDF format
    Several pages to read... do so

  • How can i make multi partition in mac with windows 7

    Dear Sir/Madam
    Greetings,
    I have a MacBook Pro with
    Serial Number  C0XXXXXXXXXV16. I want to install windows 7 in my MacBook. I want to create two partitions for my data.
    How can I make multi partitions in my computer?
    Your early reply and consideration is highly appreciated.
    Regards
    Anisseh
    < Edited by Host >

    See the response to your second post for the same question:
    https://discussions.apple.com/thread/3563070?tstart=0

  • Hi, how can I make titles in premiere elements with coloured schadows????????

    Hi, how can I make titles with coloured schadows in premiere elements????????

    narrowcaster47
    What version of Premiere Elements are you using and on what computer operating system is it running?
    Are you looking for text whose fill is a 4- color gradient instead of a solid color. Or something else, like text whose fill is a still or video?
    Answers are in the details. So, please, more details so I can fine tune a reply to your question.
    Thank you.
    ATR

  • How can i make my iphone 4 compatible with other itunes?

    I put music on my phone using my computer and then try it with my friend's computer. It works fine everything goes well, but when i try using my computer again it makes me delete all of my music! how can i make it work with both itunes without deleting all of my music and having to start all over again??? H E L P  PLEASE!

    My thought exactly.  I would like to know why Apple designed it this way.  I think you should be able to manage your files on any computer with any product.  This has been my biggest gripe about Apple. If I have a song or photo on my desktop computer and want it on my iphone great.  I should also be able to take that song or photo from my iphone and put it on my laptop at work. Hmmmm.

  • How can I make more than one account with chat on clubwpt?

    I can't make more than one account with chat on clubwpt? i know several players that has made as many as 20 accounts with chat.I can make accounts but clubwpt will not give me chat,they must have my IP address ,because their response is " you r allowed one account with chat only." But as I have said several players have several accounts with chat. Can anyone help me? Are there any programs or plugins that can do this?Any help at all will be greatly appreciate.

    Open another iCloud account for the other user.

  • How can i make the select-option selection screen use screen layout?

    I want to make the selection screen like follows.
    no:  xxxxxx   ~   xxxxxx.
    in the screen painter.
    can any expert tell me.
    thank you very much.

    Hi,
    In layout screen for description use text box and for input fields
    use two i/o box.Try follow like as bello code
    For ex: you are going to give date as a select-option:
    textbox      input/out field box   textbox   input/out field box  
    date      :    fkdat-low                to           fkdat-high
    in data declaretion:
    ranges:  fkdat  for vbrk-fkdat.
    in select query where statement:
         where date ge fkdat-low
         and date le fkdat-high.
    Regards,
    Ramya.

Maybe you are looking for

  • Is it possible to recover safari browsing history after history has been cleared?

    I have a 2012 iMac running Mavericks OSX 10.9.4 with a Seagate Backup Plus connected with Time Machine. I would like to restore safari browsing history to view some web pages from about two weeks ago. Safari history has been cleared. I think I need t

  • ISight just won't work in Skype - at my wits end!

    Hi, I've spent days reading forums and trying to figure out how to get iSight working in Skype. Hopefully someone can help before I throw the whole lot in the bin!!! Ok, I'm working on a Macbook Pro 4.1 with Mac OS X 10.5.8. All my software is up to

  • Strange folders in BoBj universe

    Good Day everyone! I have deployed OLAP cube based on MsSQL 2008 Analysis Services. I have made a connection with IDT, identified all measures and dimensions. Here everything is fine. When I am trying to run report in WebI using CUSTOMER dimension, i

  • Checkpoint not complete.. Please help

    Hi I am getting the following notification in my alert log.. Oracle Version : 10.2.0.1.0 Do I need to worry about this?? Checkpoint not complete Current log# 6 seq# 18987 mem# 0: I:\ORACLE\ORADATA\AUTOPLNT\REDO06.LOG Current log# 6 seq# 18987 mem# 1:

  • Updating SAP-HR database(Oracle) directly

    Hi All, Please let me know the pros and cons of updating the SAP-HR infotypes (database tables directly in oracle through backgound). Can the user licensing cost can be reduced with this Approach.? Regards, J.S