Display all drives on jtree

how do you get jtree to display all the drives on a computer - presumebly using: File[] roots = File.listRoots();
I can only get one displayed to select from.
cheers

how do you get jtree to display all the drives on a
computer - presumebly using: File[] roots =
File.listRoots();
I can only get one displayed to select from.
cheerstry this..
DefaultMutableTreeNode rooter = new DefaultMutableTreeNode("FileSystem");
DefaultMutableTreeNode parent;
File [] roots = File.listRoots();
for (int i = 0; i < roots.length; i++) {
parent = new DefaultMutableTreeNode(roots);
FileNode parentLst = new FileNode(roots[i]);
rooter.add(parentLst);
john gillespie

Similar Messages

  • T2000 not displaying all drives

    Hey all, I was wondering if someone could help me out.
    I have 2 T2000 with 4 drives each system. Both setup the same. Drives 0 & 1 = 72GB and drives 2 & 3 = 146GB
    On the first system when i do 'format' it only shows 0, 1, & 2. raidctl is not being used
    on the second system, raidctl was being used, but i have deleted the raidctl config. but when i do 'format' it still shows target 2 as: 2. c0t2d0 <LSILOGIC-LogicalVolume-3000 cyl 65533 alt 2 hd 16 sec 273> and it also only shows 0, 1, & 2.
    how do i remove the LSILOGIC label? and how do i get it to show the last drive?

    Hi
    after deleting the raid save it
    any entry in the /etc/vfstab
    regards
    sundar

  • LR 2.6 Windows 7 64 bit - not all drives listed in browse

    I am using Lightroom 2.6 on Windows 7 Ultimate 64 bit, and I have found an annoying issue -
    the browse for files or folders dialog that comes up when I need to choose location for my raw files imported as .dng does not list all hard drives of my computer - it only lists contents of my user folder in drive C:/ - thus making it impossible for me to choose any other location than those within my user folder.
    I attach two screenshots - 1/ Normal browse for folders dialog as it appears from within Windows explorer.
    2/ Same dialog as invoked by Lightroom - with all drives missing.
    Is that a bug or am I missing something?

    Do you have the "Computer" icon on your desktop ?
    To get it there:
    http://www.howtogeek.com/howto/windows-vista/display-my-computer-icon-on-the-desktop-in-wi ndows-vista/
    Hope this helps.
    Frans

  • Itunes 9.02.25. in Windows 7 won't display CD Drive or play CD

    Hi guys I've done some searching on the forum and checked the Gear driver in registry and updated the gear driver but to no avail. I still don't see an audio CD in iTunes.
    Any other ideas?
    Here's my diagnostic info:
    Microsoft Windows 7 Home Premium Edition (Build 7600)
    System manufacturer P5K PRO
    iTunes 9.0.2.25
    QuickTime 7.6.5
    FairPlay 1.5.23
    Apple Application Support 1.1.0
    iPod Updater Library 9.0d11
    CD Driver 2.2.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 2.6.0.32
    Apple Mobile Device Driver 1.45.0.0
    Bonjour 1.0.6.2 (118.5)
    iTunes Serial Number 389D64CB379B5E01
    Current user is not an administrator.
    The current local date and time is 2010-01-07 09:43:11.
    iTunes is not running in safe mode.
    Video Display Information
    ATI Technologies Inc., ATI Radeon HD 3800 Series
    ** External Plug-ins Information **
    No external plug-ins installed.
    Genius ID: e00e526b5693c874db09762a1577b72f
    iPodService 9.0.2.25 is currently running.
    iTunesHelper 9.0.2.25 is currently running.
    Apple Mobile Device service 2.50.39.0 is currently running.
    ** CD/DVD Drive Tests **
    No drivers in LowerFilters.
    UpperFilters: GEARAspiWDM (2.2.0.1),
    B: SONY DVD RW DRU-840A, Rev SS01
    Audio CD in drive.
    Found 12 songs on CD, playing time 44:56 on Audio CD.
    Track 1, start time 00:02:00
    Track 2, start time 00:44:05
    Track 3, start time 04:20:63
    Track 4, start time 08:12:71
    Track 5, start time 13:19:56
    Track 6, start time 17:28:60
    Track 7, start time 20:15:70
    Track 8, start time 24:35:31
    Track 9, start time 27:32:43
    Track 10, start time 31:52:68
    Track 11, start time 36:15:31
    Track 12, start time 40:07:32
    Audio CD reading succeeded.
    Get drive speed succeeded.
    The drive CDR speeds are: 4 8 16 24 32 40.
    The drive CDRW speeds are: 4.
    The drive DVDR speeds are: 4.
    The drive DVDRW speeds are: 4.

    OK after many nights of googling I finally came upon a suggestion that fixed this issue.
    Itunes won't recognise a drive letter earlier than c. The Windows 7 defaulted my drive to B. On the surface it seems like a stupid bit of programming logic to me.
    To Fix - Control Panel -> System & Security -> Administrative Tools -> Computer Management. In the Computer Management select disk management in the left hand pane and this should display all of your drives in the center pane. Highlight you cd/dvd/blu-ray drive and then right click and select change Drive Letter and Paths. Select an unused letter higher than B. Restart itunes and voila the drive appears under devices.

  • HT3492 I have an Acer S239HL display monitor connected to my MacBook pro that just stopped working. Acer customer support said I needed to refresh the display adapter driver. How or where do I find this?

    How do I update or refresh the display adapter driver on my MacBook Pro? I have it connected to an Acer display monitor that just stopped working. Acer custoemr support told me I need to refresh the display driver. ANy suggestions on how I do this? Or what I need to download or update/ Thanks.

    So the display WAS WORKING connected to your Mac?
    Restart your Mac.
    Try the monitor on another computer, Mac or Windows, to see if it works at all.

  • Printer Properties not displaying all settings.

    The Printer properties in Adobe Reader for Linux do not display all the available preferences for a given printer driver- and you are unable to edit the Printer Command in the Printer Properties window to get around this. This combo of limitations renders it useless in our environment.
    We have a Savin C6055 printer in a multi-tenant facility. Each print job needs User Code associated with it for accounting purposes. The CUPS drivers for Savin support this quite nicely and other Linux apps (Evince, OpenOffice, etc.) allow you to access this setting in the print dialog. Adobe Reader does not.
    This is a problem.

    Hi Patrick,
    This is something we're planning to fix in our upcoming major release of the Reader. To know about upcoming releases of the reader on Unix, stay tuned to the reader blog at http://blogs.adobe.com/acroread
    Thanks for reporting!
    Gaurav

  • Need help hiding all drive except mapped drives

    hello experts,
    I am trying to hide and prevent access to all local drives of an RDS server but still allow users to see mapped network drives and be able to access them like norma. I found the 2 policies that hide and prevent access to all drives, but that also applied
    to mapped network drives.
    is there any way to exclude the mapped network drives from this?
    Thanks
    Mohsen Almassud

    I am not sure, but it looks that's what I need to change in the admx:
        <policy name="NoViewOnDrive" class="User" displayName="$(string.NoViewOnDrive)" explainText="$(string.NoViewOnDrive_Help)" presentation="$(presentation.NoViewOnDrive)" key="Software\Microsoft\Windows\CurrentVersion\Policies\Explorer">
          <parentCategory ref="windows:WindowsExplorer" />
          <supportedOn ref="windows:SUPPORTED_Win2k" />
          <elements>
            <enum id="NoDrivesDropdown" valueName="NoViewOnDrive" required="true">
              <item displayName="$(string.ABOnly)">
                <value>
                  <decimal value="3" />
                </value>
              </item>
              <item displayName="$(string.COnly)">
                <value>
                  <decimal value="4" />
                </value>
              </item>
              <item displayName="$(string.DOnly)">
                <value>
                  <decimal value="8" />
                </value>
              </item>
              <item displayName="$(string.ABConly)">
                <value>
                  <decimal value="7" />
                </value>
              </item>
              <item displayName="$(string.ABCDOnly)">
                <value>
                  <decimal value="15" />
                </value>
              </item>
                        </item>
              <item displayName="$(string.ABCDQOnly)">
                <value>
                  <decimal value="65551" />
                </value>
              </item>
              <item displayName="$(string.ALLDrives)">
                <value>
                  <decimal value="67108863" />
                </value>
              </item>
              <item displayName="$(string.RestNoDrives)">
                <value>
                  <decimal value="0" />
                </value>
              </item>
            </enum>
          </elements>
        </policy>
    as far as the adml, I think I know what section I'll need to change, but I am not sure what to change there:
          <presentation id="NoDrives">
            <dropdownList refId="NoDrivesDropdown" noSort="true" defaultItem="5">Pick one of the following combinations</dropdownList>
          </presentation>
          <presentation id="NoViewOnDrive">
            <dropdownList refId="NoDrivesDropdown" noSort="true" defaultItem="5">Pick one of the following combinations</dropdownList>
          </presentation>
          <presentation id="PlacesBar">
            <text>Places to display:</text>
            <textBox refId="Places0">
              <label>Item 1</label>
            </textBox>
            <textBox refId="Places1">
              <label>Item 2</label>
            </textBox>
            <textBox refId="Places2">
              <label>Item 3</label>
            </textBox>
            <textBox refId="Places3">
              <label>Item 4</label>
            </textBox>
            <textBox refId="Places4">
              <label>Item 5</label>
            </textBox>
          </presentation>
    any help :)
    Mohsen Almassud

  • Display File System With JTree

    Greeting,
    Are there any suggestions or example which is about displaying file system with JTree??
    Thx Advanced

    Just create tree model from your filesystem.
    If you like to have fancier look, you may also
    create renderer which would show
    appropriate icons.
    Look to classes
    DefaultMutableTreeNode
    DefaultTreeModel
    ( all in the javax.swing.tree )

  • I install window 8 and Unfortunatly all drive format. And all drive mix, now i have only 1 DRIVE C. I want Bit locker Drive's data Back

    Last sunday i install a window 8 and this window format my all drive & make it 1 drive (DRIVE C). Before all of this i have 5 drive in different size with 1 Bitlocker protect drive.
    So i try data recovery software to recover my data. i got back all my data without that ( bitlocker ) protected drive.
    so please guys help me how can i get back data from bitlocker protected drives.
    please please help me.

    Hi,
    I sorry for your experience, but there is no way to recovery the data encryped by BitLocker untill now.
    BitLocker is designed to make the encrypted drive unrecoverable without the required authentication. When in recovery mode, the user needs the recovery password or recovery key to unlock the encrypted drive. Therefore, we highly recommend
    that you store the recovery information in AD DS or in another safe location.
    Please refer to the link below for the statement:
    http://technet.microsoft.com/de-de/library/ee449438(v=ws.10).aspx#BKMK_RecoveryInfo
    Roger Lu
    TechNet Community Support

  • How can I display all records as a end user?

    I am applying for jobs with the state and every week they publish a list of new positions that have just been posted on the following link: https://forms.spb.ca.gov/bulletins/weekly.cfm
    and also at http://jobs.spb.ca.gov/wvpos/search_p_ejv.cfm?classcode=5393&criteria=associate%20governme ntal
    It is a .cfm but only displays 15 records at a time, I was wondering if there is a tag or way to have it display all 300 something records at once?  My ultimate goal is to get just the full table into a excel spreadsheet while retaining the HTML formatting so the links still work.
    My thought is that the state has set it up this way to only display a set number of records at a time, the data is not private or protected, I am simply seeking a easier way to access it in aggregate.
    Thank you in advance for your suggestions and help!

    I think your best hope is to ask the author of the CFM whether they provide any web service that can get you that data when you call it.  like.
    https://forms.spb.ca.gov/webservice.cfc?method=getJobsPostings&key={key_goes_here}
    There's a chance they may be regulating performance on the resultset, and don't want to return that many records at a time, pagination or not.

  • Adobe Bridge CC Smart Collections are not displaying all images in the folder

    I'm having an issue with Bridge CC were I setup a smart collection to monitor my new photos. The folder contains over 300 photos, but is only displaying 160. The only condition I set is to have a minium file size of 10kb, so it should bring in all files since most are over 4mb. At first I thought it was a problem with the files themselves (permissions or something) but if I open the folder in bridge it easily displays all of the images easily. Any ideas?

    I'm having an issue with Bridge CC were I setup a smart collection to monitor my new photos.
    You might want to describe this workflow a bit more. Do you create this from an existing folder or are you adding new photo's?
    A Smart Collection does not refreshes it self automatically. You either have to use the edit icon top right of the content panel to save again or deselect and select the collection itself to let it refresh the content.

  • AL11 - Can't display all data in a file

    Hello,
    We have a custom folder at OS level and configured in the AL11. We are able to open the custom folder and browse all the files. We have a file of 8 KB in size and has around 21 fields. When we open the file in AL11, it doesn't display all the data, that is couple of fields from end. The physical file shows all data and looks fine.
    Anybody can help finding the problem?
    Appreciate your help
    Thanks,
    Kris

    Hi,
    I thing this is authorisation or permission issue pls chek in super user like sap* or equal of this.
    Anil

  • Display all records from 4 select list

    Hi,
    trying to associate 4 select list where i could display all records from a list linked to an other list.
    1./ Created an item for each select list
    P1_employee_name
    P1_departments
    P1_employee_type
    P1_locations
    2./Set both null and default values to '-1' for each item
    3./Associated these items to source columns in the Region:
    where employee_name=:P1_employee_name
    or :P1_employee_name ='-1'
    and departments=:P1_departments
    or :P1_departments ='-1'
    and ......
    When running the report, couldn't display all records from a given list associated to an other list.
    e.g: Display all emp and type of emp for sales dept in Paris.
    Thks for your help

    I believe the issue is that you need to group your predicates such as:
    where (employee_name=:P1_employee_name
    or :P1_employee_name ='-1')
    and
    (departments=:P1_departments
    or :P1_departments ='-1')
    Also, if you are not already using the "select list with submit" type items, these work great for this case as the page will be submitted when the user changes the value of employeenam and the report will then reflect this change.

  • Form does not display all records from table

    Hi guys
    I modified one form that was based on a signle DB table. I removed certain fields from the table and added some extra fields to that table. Then based on the new table I also modified the form and removed the text items related to old fields in the table and added new text items pointing to the new fields now. II have checked all the new items properties and they have don't seem to be wrong or so. But now the problem is the form does not display all the records from the table. before it used to display all records from the table when qureied but not now. It only certain records from the table containing all new data and also old data but the form does not display other records though I don't see any obvious discrepancy. Remember that the before doing the modifications, I have table back for the old, created another table that contained new records for the new fields, and then I inserted the old records and updated the new table data in the new table with these new table values. So this way I have got my new table. Could someone help why the new modified form fails to display all records from the new table updated table though it display some of them successfully.
    Any help will be appreciated.
    Thanks

    hi
    Set the block property of "Query All Records" to "YES"
    hope it will work.
    Faisal

  • Displaying All Values from a Multiple Value Parameter

    Hi,
    Using XI, I have a parameter field that allows the user to enter multiple values Eg. 01, 02, 13, 14.  I want to create a formula to display all the values the user has selected. 
    Is there a way to do this? 
    Thanks,
    Brian

    join({?Parameter},",")
    creates a string with the items in your parameter separated by commas

Maybe you are looking for

  • Unable to update purchase order after partial delivery

    bold Issue: After upgrading from v2005 > v2007: 1) We created a PO with two different purchase items : row 1: 10 pcs Item x row 2: 15 pcs item Y 2) create a Goods Receipt PO based on the PO row 2 (15 pcs Item Y) so this row will be closed in the PO.

  • My wishes to Adobe

    Hi. I've been a fan of Cool Edit Pro/Audition since I first discovered it while it was still called CEP.  Since then, I upgraded to Audition which was better. But, I stalled at v1.5 because all the other versions totally redid what I was working with

  • Implementing Web Service in Web DynPro

    Hi Experts, I am trying to implement a web service say 'Currency Exchange Rate' found in the following link, http://www.flash-db.com/services/?ID=3&sType=Financial WSDL URL provided there is http://www.xmethods.net/sd/2001/CurrencyExchangeService.wsd

  • Excessive use of iPhone 5 camera

    Hi there may I ask if using camera the whole day and everyday may cause damage to my isight camera? I take about 100-200 shots a days just to test if my camera works fine.. I have this bad experience in my first iphone 5 camera that is why I always t

  • Bug- Aperture is doubling projects

    This has been going on for a while. Sometimes when I launch Aperture some of the Projects will be doubled? If I try deleting them the program hangs. I can, however, drag the offending project to the trash folder. Today its really weird. My current wo