JFileChooser... How to choose directory?

I would like to let my user to Choose a directory instead of choosing file.
I let user to choose a directory to set their working directory...
so, what should i use?
can i use JfileChooser? but it seem that i can only choose for file...
thx...

setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY)

Similar Messages

  • Choose directory...

    How invoke choose directory dialog box? I found dialog box for choosing files but for directories I didn't. Could anyone help me?

    There is a component which can be used for choosing directories..The JFileChooser component
    use the setFileSelectionMode(int mode) function to set the selection criterion, as follows...
    jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY)where jfc is the object of JFileChooser.

  • How to choose App-V 5 Sequencing "Primary Virtual Application Directory"?

    Hi,
    How to choose App-V 5 Sequencing "Primary Virtual Application Directory"?
    Should I use c:\program files\MyAppR1 or just c:\program files or c:\Anything, dose it matter?
    /SaiTech

    Nice to know. Se before sequencing I have to know the exact folder structure of installable application, in what directory it would be installed by default?
    Yes. Presumably you have a good understanding of the application before sequencing it. This generally means going through an installation of the application and understanding the layout on disk, what impact the app has on the user profile etc, before sequencing.
    Please remember to click "Mark as Answer" or "Vote as Helpful" on the post that answers your question (or click "Unmark as Answer" if a marked post does not actually
    answer your question). This can be beneficial to other community members reading the thread.
    This forum post is my own opinion and does not necessarily reflect the opinion or view of my employer, Microsoft, its employees, or other MVPs.
    Twitter:
    @stealthpuppy | Blog:
    stealthpuppy.com |
    The Definitive Guide to Delivering Microsoft Office with App-V

  • How outlook choose a CAS server

    Hi all,
      I would like to ask how outlook choose a CAS server? For example, if I have 2 sites to deploy exchange server, 1 in hk 1 in russia. How would outlook choose to connect to which CAS server for exchange 2010. For exchange 2013, should it be connected
    to the active mailbox database copy? Thanks
    Best Regards,
    Elroy

    Hi,
    Client Access Server for Outlook provides the Autodiscover service, Web services (Autodiscover, availability and OAB) and RPC over HTTPS.
    Outlook 2007 first searches for the SCP in AD which contains the URL to the Autodiscover service, if more than one SCP object is found in Active Directory which means there are mulitiple CAS servers in the Exchange organization. It will sort the list of
    available SCPs by Site Affinity that match the site the Outlook's mailbox is located in. One of two lists is created, an in-site list or an out-of-site list. The list is not sorted in any particular order which is approximately in the order of oldest SCP records
    (based on creation date) first. This is not related to the proximity. However, when retrieving the Web service (availability and OAB), It will decide which entry to return based on proximity and current availability. That means to contact Autodiscover maybe
    use CAS which integrated with mailbox, and must use the CAS when retrieving other services.
    Network Load Balancing is a supported method of doing this.
    If there are mulitple CAS servers, for Outlook Anywhere (not logged into the domain), to even out the work load across multiple CAS servers which could offer Autodiscover services
    Thanks & Regards
    John Chris

  • How to choose an iPhoto Library to sync in iTunes?

    I have 3 iPhoto Library in my Mac. I want to sync my iPhone with one of them, but I don't know how to choose in iTunes the right Library.
    In this moment I have one selected, but it's not the one I want.
    Can anyone help me?
    thanks

    Launch iPhoto with the Option key held down, click on Choose Library, and specify the one you want to sync. iTunes will only sync the iPhone with the iPhoto library set as the default in iPhoto.
    (46020)

  • How to choose diffetent PO types in R/3 from a SC in Classic Scenario

    Hello everyone,
    I am working with SRM 5.0 in a classic scenario and I have a problem. I create a SC, then it is sent to sourcing cockpit where I assign it a vendor to create a PO, but I can't choose what kind of PO I want to create.
    In PPOMA_BB, the user has at least 2 different PO's in attribute BSA and attribute DP_PROC_TY. When I create a PO from a Bid invitation I can choose this kind of POs.
    Do you know how to choose different POs type from SC??
    Thanks,
    Ivá

    Hi,
    For backend products,In standard you can not choose what PO you want. By default the backend document type 'EC' is chosen. In number ranges for SC followon documents the interval number 'PO' would correspond to backend EC document external interval number. This is the standard behaviour though you might have maintained BSA attribute with other values in addition to EC.
    For local products you can choose the PO transaction type. After youclick on create purchase order, in the next screen you will get an option choose your transaction type, provided you have maintained these in PPOMA_BBP for BSA attribute.
    Hope this clarifies.
    Rgds,
    RRK

  • How to choose data in file adapter?

    How to choose data in file adapter?

    create a xml file in source folder in local source location and pick it up using file adapter in BPEL and deliver it to Target location.

  • How to change directory in Terminal (ex. cd System HD)

    hi
    how to change directory in Terminal (ex. cd System HD)
    i wrote cd system hd, which did not work. Terminal understood it as cd system.
    is there some character to write a "space" between words?
    thanks

    You need to escape the spaces with a leading backslash or the shell will give you unexpected results.
    For example to cd to "folder with spaces"
    cd folder\ with\ spaces/
    Also, the bash tab-auto-complete is your friend. Type a character or two and then tab, you'll get the idea when you see the result. If there is more than one possible completion, then hit tab a couple of times quickly and you'll get a list of all of the options.
    hth

  • How to choose Application layout in flex?

    Hi Everyone ....!
    I have confused to select the layout in flex 3.0.There are three type of layout having absolute,horizontal and vertical. Which one is best? and How to choose layout? and please Explain about layout???/...
    Thanks in advance.........
    Regards,
    Selvendran.A

    You mean if you want to have a user-resizeable application?
    If so, all 3 layouts work.
    If you can tell us what you want to build very briefly, we can help you pick a layout, however, as I said, this isn't super-important and you can change this as your application begins to take shape.
    I generally use a vertical layout for my applications for example, but not because it's best, none of the 3 can be considered that, simply because I have more vertical elements than horizontal ones or that need to be placed in specific places given (x,y).

  • How to choose which Aperture duplicate photo to keep

    I use Aperture 3.4.5 on an iMac with OS 10.8.4 and, like many others who have written to this community, I have acquired lots of duplicates because some years ago I  moved from iPhoto to Aperture. Those collections are mostly referenced in their original collections. I quite understand how these duplicates came to be.  Using Duplicate Annihilator - Aperture  I have found a great many (4 thousand) pairs of duplicate pictures out of a library of 60 thousand, and as  has been explained by several responders, usually one is called iPhoto Original and the other iPhoto Externally Edited or iPhoto Edited.  I have never knowingly used an external editor, but I do understand that, in iPhoto, just rotating the photo from portrait to landscape will create a copy, something that does not happen with Aperture.  So that is why the dupliocates exist. My question is basically, now that I have found them, how to choose which one of the two versions to keep, because there seems no reason to keep these duplicates.
    Obviously if I have made noticeable changes, or added many key words,  then I want to keep that one. The duplicates in question are in  two-photo Stacks. The original will have  a size of 3 MB or 4Mb and the copy will have a smaller size, maybe  as little as 1.5 or 2 MB.  Sometimes the copy has just been rotated (and the file size is made smaller). With Aperture I can rotate the original iPhoto picture and maintain the larger size. Sometimes (but not always) there is a name change from xxxx to xxxx.jpg.  But even without a name change, the edited or rotated file is smaller.  I have examined the two images at high resolution, in Aperture, and I cannot see any difference, though they have very different sizes.  This surprised me; there seems no benefit from the larger size, though there is a slight shift of the histogram of colors. (I do not plan to print any of these at high resolution, just show them on the iMac or a video.)
    So my question is: is it desirable to keep the larger original file, though I do not see a difference in the image on my 27in iMac? I have many of these duplicates to choose between, and I would like to understand the consequences of my choice before I delete things. 

    I would keep the larger as long as storage space wasn't an issue and if it was I'd look at increasing storage before deleting the larger file.
    Think of it this way the larger files contains more data, more data means not only a better image (even if you cannot see a difference on the monitor) but also more options when you go to edit the image.
    Cropping is just one obvious example.  A larger file will give you more options when it comes to cropping the image. 
    You can always create the smaller from the larger, you can;t go the other way. Once you delete the larger file the data is lost for good.

  • How to choose correct domain from 2 domains

    Hi All,
    There are 3 domains (bmp, eai and wli) in 2.1. Can any one point me to the documentation
    that throws light to how to choose a correct domain for your needs?
    Thanks,
    Parag

    Parag,
    Here is some light:
    bpmdomain is configured with BPM only.
    eaidomain is configured with AI and BPM. This includes the AI and DI BPM plug-in.
    wlidomain is configured with AI, B2Bi, and BPM. This includes the AI, DI and B2Bi BPM
    plug-in.
    samples is configured like wlidomain but has sample data associated with it.
    You can always read the config.xml for each domain and see what applications get deployed
    when the domain server gets started.
    Hope this helps.
    Chris
    Parag Gandhe wrote:
    Hi All,
    There are 3 domains (bmp, eai and wli) in 2.1. Can any one point me to the documentation
    that throws light to how to choose a correct domain for your needs?
    Thanks,
    Parag

  • How to choose the right project settings?

    I'm new in taking video's and in editing them. I bought a Sanyo HD Xacti Video camera and made a lot of clips in my last holiday. The clips are transferred to my compter and have the format .MP4 1280-720 depth 1280 and 29,97 fps.
    I want to create after editing en DVD which I can show on my TV 16:9 (PAL-Netherlands)
    When I create a new project I have to choose the seetings and I really do not know how to choose!!
    What Project settings should I choose because in the settings I only see 30 fps under de NTSC systems. Is there some where a general explanation how to do?
    Help will be appreciated very much!!
    Greetings Willem

    Before the NTSC to PAL, I believe there are other major considerations.
    1. You are recording 720p30 1280 x 720 16:9 at 30 frames per second, using the MPEG-AVC/H.264 codec). That sounds to me like your are dealing with what they call "AVCHD-Lite". If so, there are major basic problems editing that in Premiere Elements 7. See Steve Grisetti's FAQ
    http://forums.adobe.com/thread/454585?tstart=0
    2. Your remarks would suggest that you want to create at DVD-VIDEO widescree (16:9) of your Timeline.
    3. So before all else, I would determine if you can successful bring your video into Premiere Elements 7 and export the DVD-VIDEO in the NTSC system before you think about converting an NTSC video to a PAL end product.
    4. Typically you select the project preset (new project dialog) to match the properties of your video. Once done that does not stop you from changing the export preset later. In the case of your NTSC 720p30 Sanyo video, I would suggest the project preset (new project dialog) = NTSC HDV HDV 720p30. Think of the project preset as a template from which you can edit your video. Although this 720p is a variant of AVCHD, I suggest the HDV category since there is no 720p preset under AVCHD. Note that the descriptions to the right of where you set the preset.
    5. In Share/Disc/Disc, in the Burn Dialog, then select the preset: NTSC_Widecreen_Dolby DVD. If that is all completed successfully then we can talk about conversion of NTSC 1280 x 720 16:9 to a PAL DVD-VIDEO (720 x 576 25 frames per second with a 16:9 flag to stretch the video on display after encoding).
    6. You may find the following link helpful:
    http://www.camcorderinfo.com/content/article_converting_ntsc_pal.htm
    ATR

  • How to choose vendor's second account when MIR7/MIRO ?

    Dear All,
    Here is my question, one vendor has two account , when MIRO/MIR7, SAP default the first vendor account as IR 's default datas, how to change it to the second account which I have added in the vendor?
    In MIRO/MIR7 there only display the vendor bank details, canu2019t choose.  thx

    step1 :  XK02: In the display vendor: payment transactions I add 2 bank key with different bank account,
    step2 :  MIR7/MIRO: When after entering PO ,  system default the PO's vendor's first bank account as the new invoice datas, but sometimes I should choose the second bank account for the vendor's invoice .
    I have some try about how to choose the very bank account when entering invoice in MIR7/MIRO , but have no idea about this.  And now We have to change the vendor's bank account's sequence for this requirement.
    As there has a list for vendor's bank accounts in the payment transactions, then I think SAP should let me choose whick bank account when entering invoice in MIR7/MIRO, and how?
    thanks a lot

  • How to Stage directory for Oracle EBS R12.1.1 on Window Server 2008 ?

    Hi Every Body,
    1- How to Stage directory for Oracle EBS R12.1.1 downloaded from e-delivery.com on Window Server 2008.?
    -- I have download all files from e-delivery and check the md5 and all files are OK.
    I extracted the entire files with winrar program to the same directory and during the unzipping I was notified to replace these files (dvd.label and component.label) and I agreed each time. So >>
    2- Was that a problem ?
    -- I have setup vc++ from VS6 , the sp6, cygwin , ... and set up the active directory and the domain.. and all other requirements.
    BUT when i started the ebs set up it raise the "*Os User and Group Check*" error.
    even if I am the only user and sure I am the Administrator. and also I run this Command to be sure
    C:\>net localgroup administrators and it said that the administrator is one of the administrators group.
    3- Somebody said that I have to change the temp and tmp folder to be on c:\ drive >> might this solve the problem?
    thanks in advance.

    Hi,
    Most of the instructions you have mentioned , already was configured.
    except for the tmp and temp directories.
    And even I changed them from System Properties >> Advanced >>  Environment Variable under User variable for Administrator and System variables , the problem still exist Os User and Group Check .
    I attach the conf_VIS.txt file because I thought it may help.
    http://www.4shared.com/document/1bS6aio5/conf_VIS.html
    Actually I am not sure about the rapid install patch version but I have download the EBS R12 from the following link and I think it contains the recent installer version
    Link >> Oracle E-Business Suite Release 12.1.1 Media Pack for Microsoft Windows (32-bit)
    http://edelivery.oracle.com/EPD/Download/get_form?egroup_aru_number=11250138
    Note If you still can not open the link just suggest a suitable file hosting and I will upload to you. here I used 4shared and hoped it suits you.

  • How to choose default calendar in iOS7?

    Anyone who know how to choose default calendar in iOS7?

    Have you tried a reset?
    Quit the settings app: Double tap the Home button and swipe the app preview page up
    Hold the Sleep/Wake and Home buttons and don’t let go until the screen goes dark and the Apple logo appears (no data will be lost)
    You can also try resetting All Settings:
    Settings > General > Reset > Reset All Settings
    You will not lose any data but it will remove any settings made in the settings app.

Maybe you are looking for

  • How to include image or html dynamically in a JSP?

    I need to show the uploaded content in a jsp. It could be either a image or html file. How can i include these images or html files dynamically without affecting screen design.

  • Many many many BusinessEventRetriableException errors in logs

    Hi I am infuriated by the never ending error message below in my OC4J logs. They happen almost constantly and I'm now on OC4J log number 669 which is ridiculous. The error is: oracle.tip.esb.server.common.exceptions.BusinessEventRetriableException: F

  • Vendor Account - Payments made less Tax

    Hi Is there a report which shows the payments made to a Vendor less Tax amounts included? Thanks

  • Req for FM for adding some days to sy-date

    Hi experts,      my requirement is I have some 'X' number of days to finish my work. And I need to add these number of working days  (let me say 10 days )to the system date. sy-date + 10 gives me the weekend days also. so I need to skip the weekend d

  • Audio book tracks run together

    I have transferred audio books to iTunes and then to my iPod and the tracks run together at the very end of each track. How do I solve this?