How to select a folder or a file

Please help.
using FileDialog, I must input a file name then click open. Therefor it works with file only. In my program, I need to select folder or file.
Could you please teach me how to do it?
Thanks
Daxin Zuo

check out
http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html
and the javadocs for JFileChooser

Similar Messages

  • My Acrobat XI suddenly will not create a PDF file, but has me select a folder for the file

    How do I set my Acrobat XI to create a PDF file.  It has me select a folder for the file, but nothing get printed

    There are so many ways Acrobat creates a PDF, we need to ask: exactly what steps do you follow, that lead up to this problem? Mac or Windows?

  • How to remove a folder from claud files

    how to remove a folder from claud files?

    Folder (and file) deletion is a two-part process. First you Archive the file from the Files page at https://creative.adobe.com/files, or by deleting it from the Creative Cloud Files folder on your computer. Then you Permanently Delete the folder from the Archive at https://creative.adobe.com/archive.
    Help article: Creative Cloud Help | Manage and Sync files

  • I deleted my download folder and now I can't download anything. I can't select the folder to "save file to" and when I select "ask me where to save files" I still can't download. it says your file will start downloading, but then it doesn't. Help!!

    I deleted the folder that saves everything that is downloaded from Firefox. After that I can't download anymore. I've tried clearing my download history, reset the download folder, reset the download action by renaming the mimetype.rdfs file and it's still not working. I've tried to choose a different download folder but it doesn't let me select any folder at all. If I select "ask me where to save files" and then try and download something, the download doesn't start after I select save to. The only time it does actually download is when I select "open with...windows mediaplayer" when downloading then the download will start. Please help. Thank you.

    You broke your phone by getting it wet.  Nothing more to say.  Bring it in to Apple for an out of warranty exchange or buy a new phone.  There's really nothing else we users here can help you with.

  • How to create a folder for desktop files

    Iam new to Mac can someone help me to create a folder for my desktop word files?

    You can right click on your Desktop and select New Folder.  In Finder File > New Folder should work too, not in front of my Mac.
    Welcome to back by the way.  You might find these websites helpful.
    Switch 101
    Mac 101

  • For some reason, my compression option is grayed out under "File" menu, and when I select a folder with multiple files, or multiple documents, and try to right-click or tap the mousepad with two fingers, I do not get a "compress" option available. Help.

    I don't know why, but when I select a folder with multiple docs contained within it, or multiple files, the Compress option is grayed out under the File menu, nor is it available when I right-click. Please help.

    Yes it is, but I have the same problem of the option does not appear with "right click" (I'm actually control-clicking), and COMPRESS is grayed out under the file menu. I'd like to fix it.
    Hmm. After finding the Archive Utility,* I tried archiving the folder. It came out as .cpgz, ugh. Found there was a preference to make .zip the default. It worked!
    And now…the menus are not grayed out. ?!?! OK.'
    Hope this helps someone.
    *You cannot find this via search, apparently it is a hidden file, you have to click from the root drive through to /System/Library/CoreServices (Thanks for the file path Alberto!)

  • Cannot select a folder- Nikon NEF files

    OK, I am aware of all the talk about having to select a folder for the DNG converter, not the actual files. My DNG Converter has worked fine up until today, it's now not letting me select a folder. When I do, and go back to the converter window, the folder I selected doesn't appear and it says "No files selected" with the "Convert" button greyed out. Has anyone else had this happen??? I tried installing it again today, no dice. I also don't see the converter at all in my Control Panel- I wanted to uninstall and install again, or try repairing it. The only thing I've done recently is install Adobe's stupid Download Assistant...
    Help, anyone?? Thank you so much.

    Thanks for responding, Jim- I wondered about the converter not showing up, I guess it's more like a plug-in than an actual program? I did just try that when I saw your answer- it absolutely worked to pull the folder over to the icon! I'd never heard of that option...thank you so much for solving the issue. I hope this helps other users too.
    Alanna

  • Urgent... how to open particular folder by using file tag

    Hi,
    I want to select a particular folder using file browsing option in html. why i want this is : i have to update the resumes located in a particular folder. so every time i am opening that folder which is a subfolder.
    ex: c:\dir1\dir2\dir3\Resumes
    Eveevry time , i have to go to C -> dir1->dir2-->dir3 then Reusmes
    what i need is when i click the browsing button, i want to get the Resumes folder directly. Is there any option to do that one by setting value to file tag.
    thanks in advance
    my mail id [email protected]

    Hi venkatanarayanareddy (if that is your real name),
    You say you want to use file browsing option in html, which makes me guess this functionality is through a web page. Can you give us a bit more information about how this works as it's not abundantly clear how it relates to Java (JSP?).
    On another note (and I woke in customarily pedantic mood this morning), there's no need to post your e-mail address since [in the name of sharing the knowledge and not keeping answers to questions secret between the questioner and respondant] you will find responses posted here in the forum.
    Chris.

  • Urgent.. How to open Particular folder direcly using File Browse tag

    Hi,
    I want to select a particular folder using file browsing option in html. why i want this is : i have to update the resumes located in a particular folder. so every time i am opening that folder which is a subfolder.
    ex: c:\dir1\dir2\dir3\Resumes
    Eveevry time , i have to go to C -> dir1->dir2-->dir3 then Reusmes
    what i need is when i click the browsing button, i want to get the Resumes folder directly. Is there any option to do that one by setting value to file tag.
    thanks in advance

    Hi venkatanarayanareddy (if that is your real name),
    You say you want to use file browsing option in html, which makes me guess this functionality is through a web page. Can you give us a bit more information about how this works as it's not abundantly clear how it relates to Java (JSP?).
    On another note (and I woke in customarily pedantic mood this morning), there's no need to post your e-mail address since [in the name of sharing the knowledge and not keeping answers to questions secret between the questioner and respondant] you will find responses posted here in the forum.
    Chris.

  • How to create a folder in the file system?

    Hi All,
    How to create a normal folder in my PC's file system in a specific path?

    Host just passes commands to the OS; the simplest way to try would be playing a little bit around in the shell to figure out what's not working...
    C:\>dir "I am"*
    Volume in drive C is System
    Volume Serial Number is 5C03-B54D
    Directory of C:\
    File Not Found
    C:\>cmd /c mkdir "c:\I am a directory"
    C:\>dir "I am"*
    Volume in drive C is System
    Volume Serial Number is 5C03-B54D
    Directory of C:\
    09/21/2010  02:38 AM    <DIR>          I am a directory
                   0 File(s)              0 bytes
                   1 Dir(s)     509,628,416 bytes free
    C:\>cmd /c mkdir "c:\I am a directory"
    A subdirectory or file c:\I am a directory already exists.
    C:\>or with the host built-in
    host('cmd /c mkdir "'||full_path||'"');But first you should check if the directory already exists as mkdir will throw an error if it exists as you can see.
    cheers

  • Adobe X - How to select all text in a file

    I have a feeling this is a dumb question, but I need to select all the text in a pdf file and I can not figure how to do it with Adobe X.  It was very simple in previous versions.  Any answers would be greatly appreciated!
                                                                    mathguy06

    ariel0 wrote:
    why are you sending this question to me
    Nobody is sending anything to you.
    Did you subscribe to the forums accidently?

  • How can i define folder to save files in DMS

    Dear all,
    How can i define folders to save uploaded files.
    Regards,
    Gaurav Sood

    Hi Gaurav,
    generally there are no 'folders' in DMS. In DMS we use document info records (DIR) which are mainly a kind of box which contains data like
    - descriptions
    - object links
    - classification data
    - original files
    So if you create such a DIR in transaction CV01N then you can also upload or assign a file to this document info record and check it in. So you can say that the folder is the document info record.
    Another possibility for DMS is to use EasyDMS which is a kind of small Add-On to the Windows explorer. In this Add-On
    folders are displayed to simplify the navigation for the user equal to the Windows Explorer. The folders you see in EasyDMS is a document BOM header in the SAP backend system. But mainly this is also a DIR which has additional DIRs assigned to build up a document BOM. If you have such a BOM header DIR than you can display the detailed BOM items by using transaction CV13 for example.
    So in a nutshell, if you want to upload files in DMS you need to create a document info record in transaction CV01N first. Therefore the customizing in transaction DC10 and DC30 is important.
    Best regards,
    Christoph

  • How to change a folder name in file manager

    I misspelled a folder name and now the url is misspelled as well, and i cant see a way how to change it, does anyone know how to change it?

    You can go to Develop Mode inside site admin and change folder name. Please see the screen-cast :
    Thanks,
    Surjeet

  • How to select at once many jpg files for attachments of an email?

    With Window Explorer, I could select (using Shift) a series of many jpg or doc files as attachments with an email, but I couldn't with FireFox.
    I had to select one by one, which is very cumbersome!
    Is it possible with FireFox?

    Added tips from Tip Merchant ($200 consulation fee)
    - on mac - command/ numeric keypad Enter turns the path into a selection. Option delete then fills.
    - an action can be setup to bring up Fill Path from the Path panel menu. Just pressing enter fills with FG color
    These are ways to avoid he paths panel altogether. Best way may be to use the TINY fill path icon in that panel as was pointed out by John

  • How to select which folder my photo's sync to on my PC from the camera roll

    When I sync my Iphone the pictures on my CAMERA ROLL sync to a folder in MY PICTURES on my PC. How do I change which folder on my PC that the pictures save to.

    http://support.apple.com/kb/HT4083
    This would be done from your computer, as it would with any digital camera.

Maybe you are looking for

  • Installing new layer styles in PSE 7

    What is the correct way to install new layer styles into pse 7? ( I use Vista) Do I move my extracted style file into the layer styles folder by following this pathway: program data>adobe>photoshop elements>7.0>photo creations>layer styles. Do I need

  • Editing & Organizing in iPhoto 6

    I have been unable to create a custom film roll. I followed advice in the forum to krenkelt on May 11, 2008 by smtr but it has not worked for me. In File, when I click on create film roll nothing happens.

  • In JSF, how to make a menu with access control?

    In JSF, how to make a menu with access control? The access control can be guided by programming, database or other means if possible? Thanks

  • Generating a partner profile

    Hello Gurus, In BD64 I am trying to generate a partner profile for R/3 to BW system. The RFC destination has been defined correctly. And WE20 is also maintained in both the systems. After defining the message types RSSEND, RSINFO and RSRQST in BD64,

  • FlashLite doubt...

    Hi there... i saw in the Device Central that just certain amount of Nokias can run my swf application. How can i make the "other nokias" run it too? Thanks. Cheers. Leo