How to use JFileChooser to select only hard drive?

I am doing CD update. I am using a component called "JFileChooser". I use this component to let user choose a Hard Drive or Floopy. When I try this component, and if I choose a hard drive and a folder/file, it works. If I only choose hard drive, it will return "My Documents"??? I cann't get hard drive. How to set up JFileChooser so user only choose hard drive and it will return this hard drive. Thanks for help.
Gary

Easiest (and maybe most portable) way is to have a specific file in your root directory of the CDROM. You could use java.io.File.listRoots() to get all drives and then pick the one that has your file.
This will enable the user to copy the CDROM to a hard drive (easier for testing also) or mount a remote CDROM.

Similar Messages

  • Can anyone help me figure out how to use my new LaCie external hard drive to import movies from my camcorder into imovie '09? I ran into so many problems last night!! Was up way past my bedtime!

    Can anyone help me figure out how to use my new LaCie external hard drive to import movies from my camcorder into imovie '09? I ran into so many problems last night!! Was up way past my bedtime!

    I'll stay in this chat ... I answered in the other one ... I have a Sony digital Handycam ... from years ago.  I just got the LaCie and I think I formatted it for only to be used on my Mac ... how should I go about reformatting it to be HFS Extended like you said?

  • How to use a iomega prestige portable hard drive (mac edition) to resolve a start up space problem i.e. have 1.07gb need 4.85gb to upgrade tp itunes 7

    How to use an iomega prestige portable hard drive (mac edition) to resolve a startup space problem.  I need 4.85gb to up grade to itunes 7.  I have 1.07gb free

    com.apple.NVDAResman appears to be the culprit, indicating a problem with the graphics card. Run the Apple Hardware Test program, extended tests.
    See
    What is a kernel panic,
    Technical Note TN2063: Understanding and Debugging Kernel Panics,
    Mac OS X Kernel Panic FAQ,
    Resolving Kernel Panics, and
    Tutorial: Avoiding and eliminating Kernel panics for more details.

  • How to use TimeCapsule as an external hard drive and thats it

    I used have to internet wifi with my TC but now I recently moved and no longer wish to get internet. But can I use my TimeCapsule as an external hard drive only? If so, how do I do this? What kind of cable do I need? (I missplaced the cable that came with it, or do I need a special cable?) What are the steps to start saving the data on my macbook to the TC? Oh i have the newer model alumin macbook 13"

    You can still have wi-fi without internet, if you want.
    You could connect to the time capsule via wireless or via ethernet cable so that you can access the hard drive. This would also allow you to back up to the Time Capsule.
    To begin back ups have your Time Casule turned on and either connected via ethernet to your computer or have it using the wi-fi.
    Go in to Settings and choose Time Machine. Turn it on and follow the instructions, selecting the Time Capsule as the back up location.

  • How to use the  ipod as external hard drive???

    I went to the windows explorer page and checked under my computer and saw my ipod as the "E" drive. Is the procedure of storing files, be it word or excel or photos as simple as dragging them into the ipod E drive location???
    I have tried doing this and they seem to have been copied into the ipod, however when I checked into the ipod they were not there...anywhere. I highlighted the "ipod(E)" drive and created a new folder named "my documents" and then dragged some word files into it. I then detached the ipod from my computer and checked the ipod for the files and the new folder "my documents" and could not find them.
    When you use the ipod as an external hard drive are all the documents and files you drag into it hidden???
    Is there any way to view word documents?? How do you store them?
    When using the ipod, is the only viewable information that comes up onto the ipod screen, info from the "itunes" page??
    cheers
    ipod 4th generation....20g Windows XP
    Windows XP

    You can't view any of the files on the iPod while using the iPod. You can only see them through the computer. I guess if you want, you can put the files into the "Notes" folder on the iPod and see them using your iPod, but you can only open .txt files up to 4kb big.
    eMachines(POC); 3rd Gen 40GB iPod, 4,000 songs on the dot!   Windows XP Pro  

  • How to use recovery dvd on new hard drive, install window 7

    hello, i have trouble with my laptop. my hard drive got bad sectors and now i need to replace my hdd to new one. im not sure how to reinstall window 7 on my new hdd.
    is it possible to install operating system on new hard drive using recovery disk? and how?

    Hi,
    Yes, recovery discs will work on a new hard drive, but it's generally best to ensure that the replacement drive is of the same capacity ( slightly larger is Ok ) as the original - recovery discs can have issue when used on a drive that has a smaller capacity than the original.
    When you have replaced the HDD, all you need to do is as follows.
    Tap away at the esc key as you start the notebook to enter the Start-up Menu. 
    Insert the 1st Recovery Disc. 
    Select Boot options ( f9 ), use the arrow keys to select the CD/DVD drive and hit enter.  You may also get a prompt to 'Press any key to continue' - do this if asked.
    You will be prompted to insert subsequent discs as required.
    Regards,
    DP-K
    ****Click the White thumb to say thanks****
    ****Please mark Accept As Solution if it solves your problem****
    ****I don't work for HP****
    Microsoft MVP - Windows Experience

  • How to use iTunes with an external hard drive?

    Hi-
    I'm pretty new to iTunes, so forgive me if this is a stupid question. I have about 15GB worth of music saved onto my laptop now and taking up a ton of space. So I got an 80GB external hard drive to move everything onto. What I don't understand, though, is what happens after I save my music onto the external hard drive and remove from my laptop hard drive. How do I play music in iTunes from the files stored on the external hard drive?
    Thanks in advance!!
    HP Compaq NC6000 notebook   Windows 2000  

    Welcome to discussions! Even though this is the "using iTunes music store" forum, for questions & issues using the store, I can go ahead & offer a little advice. This link from MacMuse will explain about moving iTunes to a new drive. The most important point being is you must tell iTunes the location of the iTunes music folder on the EHD. Please post back if you have any questions.
    http://discussions.apple.com/thread.jspa?threadID=121879

  • How to use mac mini as external hard drive

    trying to wipe an old mac mini and use as external hard drive for my iMac.  Help!

    Connect them with a FireWire or Thunderbolt cable and start up the Mac mini with the T key held down. If desired, use the Disk Utility in the /Applications/Utilities/ folder to erase it.
    (86231)

  • How do I load MacOS 9.2 to my MacOS 10.4.6 only hard drive?

    Question.
    How do I load MacOS 9.2 to my MacOS 10.4.6 only hard drive so I can run "Classic" programs?
    I have the MacOS 9 install disk.
    Thanks,
    -Apple //GS

    If your PowerBook shipped with a separate Mac OS 9 installation CD, insert it into your computer and restart with the C key held down. Once the CD has started up, double-click the icon of the hard disk and check whether the folder System:Library:CoreServices has a smiling Mac icon; if so, drag the item Finder onto the desktop. In either case, install Mac OS 9, and then select the Finder item if you moved it earlier and choose Put Away from the Special menu.
    If your PowerBook did not ship with a separate Mac OS 9 CD, which is the default on a 12-inch PowerBook, use the computer's original disks to add the Classic environment.
    A retail Mac OS 9 CD will not boot any PowerBook G4 except for the original model, which will run from the universal Mac OS 9.21 CD.
    (12751)

  • How do you format an NTSF external hard drive for use with Mountain Lion

    I'm switching over to Mac from PC, and have an external NTSF formated hard drive I regularly use. I understand from the forum the initial file transfer should be no issue, but for ongoing use of the HD, does it need to be formated to something other than NTSF... and if so, to what and how.

    Do this when you're ready:
    Drive Partition and Format
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Apply button and wait until the process has completed.
    4. Select the volume you just created (this is the sub-entry under the drive entry) from the left side list. Click on the Erase tab in the DU main window.
    5. Set the format type to Mac OS Extended (Journaled.) Click on the Security button, check the button for Zero Data and click on OK to return to the Erase window.
    6. Click on the Erase button. The format process can take up to several hours depending upon the drive size.

  • How do I restore a failed external hard drive using Time Machine?

    I have an external hard drive connected to my iMac that is being backed up with Time Machine.  I just realized that should it one day fail and no longer appear as a connected device, I'm not sure how to restore its data to another external drive.  When I disconnected the external hard drive (to mimic a drive crash) and entered Time Machine to see if I could verify that the external hard drive was, in fact, being backed up - I didn't know where to find it.  Under the Today (Now) information, I didn't expect to see it there as it was no longer connected to the machine.  But when I went back a few days, I expected to see its backup appear in the Sidebar.  But no!
    So - how do I restore a failed external hard drive using Time Machine?
    Searches for this information on Google yielded "iffy" results.  I'm hoping someone here is able to offer some clear steps to follow.  Perhaps I'm missing something silly.  Thank you very much!

    I came across this discussion after encountering the same problem. Since my internal HD was cose to full I added an additional external HD to my setup. I moved my iPhoto files to an external HD and backed both this external HD and my internal HD up with Time Machine to another external HD. So far the theory. When I wanted to test if this setup worked I noticed that I could only see my iPhoto libraries on the external HD in Time Machine when the external HD was connected to my computer, but not if I turned it off. This led me to search for a solution on the Apple Support Communities discussion board.
    The suggestions made Kappy seem right, at least in my experience, in that my Time Machine simply did not back up the external HD until I followed the steps he suggested above. These were the following:
    "So, if you want it backed up then here's what you need to do:
    1. In Time Machine preferences remove the external drive from the Exclude list.
    2. Verify that it is now included with your other drive in the backup list.
    3. Do a Backup Now to create a new backup of the external drive."
    After doing this, my external HD showed up in the Backups.backupd as a seperate folder. I could clearly see the Time Machine back-up for my internal HD and my external HD. In addition, in Time Machine itself I was able to find the external harddrive by clicking on my own computers name under "Devices". I hope my experience helps to resolve your issue as this discussion board has helped me resolve mine (which I believe to be very similar).
    Cheers!

  • I need to back up my imac running Tiger (no time machine) so that we can upgrade OS. It is set up for multiple accounts.  How do I capture all files in each account using newly purchased USB external hard drive?

    I need to back up my imac running Tiger (no time machine) so that we can upgrade OS. It is set up for multiple accounts.  How do I capture all files in each account using newly purchased USB external hard drive?  Thanks!

    Backup Software Recommendations
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    SuperDuper!
    Synk Pro
    Tri-Backup
    Others may be found at VersionTracker or MacUpdate.
    Visit The XLab FAQs and read the FAQ on backup and restore.  Also read How to Back Up and Restore Your Files.
    Or you can simply use the Restore option of Disk Utility to clone the drive to the backup:
    Clone using Restore Option of Disk Utility
    Open Disk Utility from the Utilities folder.
    Select the destination volume from the left side list.
    Click on the Restore tab in the DU main window.
    Check the box labeled Erase destination.
    Select the destination volume from the left side list and drag it to the Destination entry field.
    Select the source volume from the left side list and drag it to the Source entry field.
    Double-check you got it right, then click on the Restore button.
    Destination means the external backup drive. Source means the internal startup drive.

  • I have iMovie 09. I just erased my external hard drive, but it is still formatted for the mac. However, iMovie will not recognize the hard drive. It shows the only hard drive available is the computers. How do I get the external hard drive to show up?

    I have iMovie 09. I just erased my external hard drive, but it is still formatted for the mac. However, iMovie will not recognize the hard drive. It shows the only hard drive available is the computers. How do I get the external hard drive to show up?

    In Finder's Menu, select Go menu>Go to Folder, and go to "/volumes". (no quotes)
    Volumes is where an alias to your hard drive ("/" at boot) is placed at startup, and where all the "mount points" for auxiliary drives are created for you to access them. This folder is normally hidden from view.
    Drives with an extra 1 on the end have a side-effect of mounting a drive with the same name as the system already think exists. Try trashing the duplicates with a 1 or 2 if there are no real files in them, and reboot.
    If it does contain data...
    http://support.apple.com/kb/TS2474

  • Restore using Time Machine to new hard drive, but last "full" backup was 2012.  how do I restore the rest of the Time Machine backups, particularily IPHOTO libraries for each user?

    Restore using Time Machine to new hard drive, but last "full" backup was in 2012.  How do I restore the rest of the Time Machine backups, particularily IPHOTO libraries for each user? 
    I entered Iphoto for my user and only photo up until 2012 were in the library.  I thought the restore would do the incremental Time Machine backups too.....
    Running 10.8.2

    It usually means you are running Mavericks but have an earlier version of iPhoto. Open the App Store and upgrade your version of iPhoto to the Mavericks version.
    The iWork apps are free with a new iOS device since 1 SEP 2013. They are free with a new Mac since 1 OCT 2013. They are also free with the upgrade to OS X Mavericks 10.9 if you had the previous version installed when you upgraded.The iWork apps are free with a new iOS device since 1 SEP 2013. They are free with a new Mac since 1 OCT 2013. They are also free with the upgrade to OS X Mavericks 10.9 if you had the previous version installed when you upgraded.
    iWork and iLife for Mac come free with every new Mac purchase. Existing users running Mavericks can update their apps for free from the Mac App Store℠. iWork and iLife for iOS are available for free from the App Store℠ for any new device running iOS 7, and are also available as free updates for existing users. GarageBand for Mac and iOS are free for all OS X Mavericks and iOS 7 users. Additional GarageBand instruments and sounds are available for a one-time in-app purchase of $4.99 for each platform.

  • How do I stop firefox from attaching to and using resouces from my external hard drives. Why is it doing this. I don't like it.

    I cannot disconnect from external hard drives because firefox is using the drive. I really don't like this. Aside from being intrusive and inconvenient it seems spywarish or just plain data mining.

    Try the solution here: [[/questions/768100]] Why does firefox want to use different fonts on mounted hard drives
    Move all User fonts in Font Book to Computer fonts.
    # Launch Font Book (/Applications/Utilities/)
    # Open Font Book > Preferences
    # Deselect: "Automatic Font Activation"
    # Set the "Default Install Location" for fonts to "Computer"
    # Select all User fonts
    # Move the selected User fonts to Computer fonts
    # Remove all duplicate fonts in Computer fonts

Maybe you are looking for

  • Scheduled BEX Broadcaster reports does not work automatically after BW 7.3 upgrade

    Hello, We recently upgraded our BW system from 7.0 to 7.31 Since then broadcasting reports has been inconsistent. Not all the reports are broadcasted. Some reports of object type Query has been scheduled to run everyday but I don't see that in releas

  • Activating Subscript For Inspection characteristic Long Text in T-code QE11

    Hello All I have maintained the inspection characteristic long text in QP01 as " H2O" where 2 is in Subscript. No when I see the inspection characteristic long text in T-Code (QE11, QE12 & QE13) it appear as (H2O) & here "2" is not shown in the subsc

  • I am getting choppy video on my Macbook Pro.

    I know there are about 75 answers to this already, but nothing has worked. I have Maverick. I just upgraded to 8GB of ram. 2.3 GHz Intel Core i7. I ran disk utility. I have updated Flash. I have plenty of memory. I have restarted in Safe Mode and the

  • HKEY_LOCAL_MACHINE/sofware/classes/QuickTimePL and opening "Regedit" Menu.

    Like other people on here, I, too, have had problems with downloading the new QT. I receive the same error message. I've tried what's been suggested in other threads (Opening "Regedit"), but I cannot acces it for more than five seconds or so. I have

  • Reg: Inprocess inspection

    Hi All, can anyone explain me about in-process inspection and how to carry out. i have attached quality plan to master recipe. once i create the order, inspection lot is created and it is coming to  QA32. when i make the Results recording for that lo