Portable file system jtree based on FileSystemView

Does anybody know of an open source widget that meets this description?
I wrote just a basic explorer style widget that works on linux and win32, but it doesn't use the shell that most win32 users expect (and that I now hate with a passion)- i.e. Desktop/My Documents/etc.
This bogus win32 file shell is available through filesystemview, but sticking this into a jtree and having it work on every OS and also having features like being able to set a selected node by passing in a file object... well that ends up being a pretty advanced topic. Having to spend a week writing a component that is readily available in any win32 programming language really bites.
Anbody know of anything that may help?

Thats what I have written already, w/o a severe degree of difficulty.
Unfortunately, this type of implementation differs greatly from what users in the year 2003 are used to seeing in their win32 desktop apps. Heck, novice users who are new to PCs may never find "Desktop" in a JTree if they are left to fend for themselves and figure out where it is buried! i.e. C:\Documents and Settings\byoung\Desktop. You may say, "Not my problem"... however when you are selling your app and people choose not to buy it because it isn't "novice friendly", well then it becomes your problem very quickly.
Unfortunately, the way Micro$oft has messed up the file system by using this bogus shell crap, the file system is no longer even a true hierarchy... it is partly busted. It is then very difficult to use the same widget code (such as a tree) based on a FileSystemView that is truely cross-platform. Not very nice... not very nice at all.

Similar Messages

  • How to extend the file system?

    hello experts,
                             how to check wether file system is full?and how to extend the file system?

    Hi,
    You can check whether your file system occupancy using Unix level command df -k.
    how to extend the file system?
    Whats the OS platform you working upon and need to extend the file system. Based on individual OS platform commands may vary.
    Regards,
    Deepak Kori

  • How to create a record based on the name of a file in the file-system?

    Hi,
    With a lot of pictures I want to have a database to gather some information about these pictures.
    First question is how to generate a record based on a file in the file system?
    e.g. the pictures are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg" .
    now i want to create records with as one of the attributes the name of the picture (not the picture itself). how to create these records (based on the information of the file-ssytem). i.e. the number of records should be the same as the number of pictures.
    any suggestions?
    any reaction will be appreciated.
    Leo

    Link to Create directory
    http://www.adp-gmbh.ch/ora/sql/create_directory.html
    You can create a list of files in the directory and read the list files from that directory.
    [UTL_FILE Documentation |http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]
    [Solution using Java|http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:439619916584]
    SS

  • Convert Raw Device to file system based file systems for datafiles [HP-UX]

    Hello experts,
    Once again in seek of guidance..
    I am in the process of migrating my database (Oracle 7.2.3 on HP-UX 10.20 to Oracle 8.1.7 64-bits on HP-UX 11).
    Amongst one of our steps is to convert our RAW Device datafiles to File System based files within the same server and version - Oracle 7.2.3 on HP-UX 10.20.
    E.g. /dev/vg00/rlvol1 to become /d01/oradata/cmtdb/tbs1.dbf
    Is this something possible?
    Can i just do the following:
    a. Shutdown database (normal)
    b. dd if=/dev/vg00/rlvol1 of=/d01/oradata/cmtdb/tbs1.dbf bs=20k
    c. chown oracle7:dba /d01/oradata/cmtdb/tbs1.dbf
    d. svrmgrl> startup mount
    e. alter database rename file '/dev/vg00/rlvol1' to '/d01/oradata/cmtdb/tbs1.dbf'
    f. alter database open.
    Thanks very much for your replies.
    Please tell me about possible problems that i can anticipate.
    Best Regards
    Yogeeraj

    Hello experts,
    Once again in seek of guidance..
    I am in the process of migrating my database (Oracle 7.2.3 on HP-UX 10.20 to Oracle 8.1.7 64-bits on HP-UX 11).
    Amongst one of our steps is to convert our RAW Device datafiles to File System based files within the same server and version - Oracle 7.2.3 on HP-UX 10.20.
    E.g. /dev/vg00/rlvol1 to become /d01/oradata/cmtdb/tbs1.dbf
    Is this something possible?
    Can i just do the following:
    a. Shutdown database (normal)
    b. dd if=/dev/vg00/rlvol1 of=/d01/oradata/cmtdb/tbs1.dbf bs=20k
    c. chown oracle7:dba /d01/oradata/cmtdb/tbs1.dbf
    d. svrmgrl> startup mount
    e. alter database rename file '/dev/vg00/rlvol1' to '/d01/oradata/cmtdb/tbs1.dbf'
    f. alter database open.
    Thanks very much for your replies.
    Please tell me about possible problems that i can anticipate.
    Best Regards
    Yogeeraj

  • How to Refresh JTree if a file System got changed during Run-time

    Hi,
    Can anyone tell me how to refresh a JTree(javax.swing.JTree) used for displaying file system(both local and remote).
    I'm getting a problem if a file/directoy is added to the file system, after my Applet is loaded. Actually, i have used DefaultTreeModel's reload() method for refreshing and calling it inside SwingUtilities.invokeLater() using Thread, but its not working.
    I want that the tree should reflect the latest Files/Directories on the click of a node, if any file or directory is added under that node.
    Plz tell me if this is possible or not.
    Thanks

    Hi Shay_te,
    Thanx for ur reply as i was eagerly waiting for the one.
    but the example is using the TreeTable
    and i have used JTree and DefaultTreeModel.
    I'm calling reload(node) within treeExpand() method
    Then, i'm regestring addTreeModelListener() as
    m_model.addTreeModelListener(new javax.swing.event. TreeModelListener(){ }
    inside which all 4 methods are over-ridden
    code snippet is as follows so plz help me and tell if this the right way:
    class DirExpansionListener implements TreeExpansionListener{
            DirExpansionListener(){
            public void treeExpanded(TreeExpansionEvent event) {
                final DefaultMutableTreeNode node = getTreeNode(event.getPath());
                final FileNode fnode = getFileNode(node);
                Thread runner = new Thread() {
                    public void run() {
                        if (fnode != null && fnode.expand(node)) {
                            Runnable runnable = new Runnable() {
                                public void run() {
                                    try{
                                       m_model.reload(node);
                                        m_model.addTreeModelListener(new javax.swing.event.TreeModelListener() {
                                            public void treeNodesChanged(javax.swing.event.TreeModelEvent evt) {
                                            public void treeStructureChanged(javax.swing.event.TreeModelEvent evt) {
                                                System.out.println("Path of node changed->"+evt.getTreePath());
                                            public void treeNodesInserted(javax.swing.event.TreeModelEvent evt) {
                                                System.out.println("Nodes Inserted method called..");
                                            public void treeNodesRemoved(javax.swing.event.TreeModelEvent evt) {
                                        System.out.println("Run inside DEvent called..");
                                        //Thread.sleep(500);
                                        //fnode.expand(node);
                                    }catch(Exception e){System.out.println("err :" +e);}
                            SwingUtilities.invokeLater(runnable);
                runner.start();
            public void treeCollapsed(TreeExpansionEvent event) {}
        Please reply...

  • Open API App (Windows based) fails to open FMB on Unix file system

    My Open API, Windows based app, can successfully open and 'get' properties of FMBs stored in the Windows file system. However, it fails to load the FMB when the FMB resides on a networked Unix server. The same FMBs on Unix can be opened by the Windows based FormBuilder (over the network). I can copy the FMB down to Windows and without re-compiling the FMB, my Open API app can 'load' the FMB and 'get' all the properties. What suggestions can you give for debugging / resolving this? I need to be able to 'Load' the FMBs (through the Open API), that reside in the Unix file system, from Windows.
    JJ

    Generally, this is why we will tell you that accessing net shares is not supported and in places where it might even be supported, we would still suggest that it is not recommended. Accessing via net shares (especially through Windows) is often problematic. There are various performance and connectivity issues that, unfortunately fool you into believing that the product you are using is flawed when the problem is really a connection issue with the share.
    In your case, because you are not exactly using an Oracle product (initially), Oracle can't offer much anyway, but I would recommend against using shares whenever possible. If you need to access a file, copy it locally first, perform whatever task on it, then return the updated file to its origin. This method protects you from things like net failure and instability as well as the performance issues associated with accessing files remotely.

  • [SOLVED] Wince Exception 'Data Abort' (0x4) for gwes.dll with ROM based file system??

    Hello friends,
    Previously, I was using RAM and ROM based file system and my device was booting correctly. Now, I made only one change related to ROM based file system. When I selected this ROM based file system and try to boot the device.... I got the exception and the
    logs are ---- 
    3321 PID:400002 TID:410002 SetOpp: choosing AM335X_REV_ES2_1
    3321 PID:400002 TID:410002 SetOpp to 3
    3331 PID:400002 TID:590002 OALIoCtlHalInitRTC: Initializing RTC
    3331 PID:400002 TID:590002 RTC_SetTime() = 2006.01.01 12:00:00.000
    3480 PID:400002 TID:930006 ECC TYPE is BCH 8 bit
    3481 PID:400002 TID:930006 8Bit NAND device
    4835 PID:400002 TID:930006 CM3: input file [\windows\firmware.bin] is 9932 bytes long
    4837 PID:400002 TID:930006 CM3: firmware file read ok!
    5037 PID:400002 TID:930006 SDHC: CPU revision 0xffffffff
    5181 PID:400002 TID:930006 UCD_INIT: g_Dc.pUsb0Regs->MODE_R = 0x80
    5185 PID:400002 TID:930006 CAM3xxOTG::Init DEVCTL 80
    5391 PID:400002 TID:930006 UsbPowerModule: 2 DEVCTL = 0x00000081
    5664 PID:400002 TID:2df001e Exception 'Data Abort' (0x4): Thread-Id=02df001e(pth=9e451cc8), Proc-Id=00400002(pprc=8219f5e0) 'NK.EXE', VM-active=04510006(pprc=9e4658c0) 'GweUser.exe'
    5664 PID:400002 TID:2df001e PC=efd918b8(gwes.dll+0x000118b8) RA=efd918b8(gwes.dll+0x000118b8) SP=ab5ff960, BVA=00000024
    1529482 PID:400002 TID:2df001e Exception 'Data Abort' (0x4): Thread-Id=02df001e(pth=9e451cc8), Proc-Id=00400002(pprc=8219f5e0) 'NK.EXE', VM-active=04510006(pprc=9e4658c0) 'GweUser.exe'
    1529483 PID:400002 TID:2df001e PC=efd918b8(gwes.dll+0x000118b8) RA=efd918b8(gwes.dll+0x000118b8) SP=ab5ff960, BVA=00000024
    PB Debugger The Kernel Debugger has been disconnected successfully.
    After giving calibration inputs, I go the above exception and the LCD screen becomes white only... But i only changed the file system from RAM & ROM based file system to ROM based file system....
    As, I am trying to find the solution but up to now I am unable to find the solution. I request to provide the appropriate inputs???? 

    Hello Friends,
    After using the filter as an environment variable in the .bat file still the issue is not solved.. I can only see the Windows Embedded Compact 7 logo without any icon and toolbar??????
    My platform .reg files entries are as -
    ;; Load Device Manager to start storage driver
    #if (defined SYSGEN_FSROMONLY)
    [HKEY_LOCAL_MACHINE\init\BootVars]
    "Start DevMgr"=dword:1
    ;; Block driver settings to load at boot phase
    [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\]
    "Profile"="FlashDisk"
    "Flags"=dword:1000
    ;; How to use storage space
    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk]
    "AutoMount"=dword:1
    "AutoPart"=dword:1
    "AutoFormat"=dword:1
    "PartitionDriver"="mspart.dll"
    "MountAsBootable"=dword:1
    "Name"="NANDFLASH"
    "Folder"="NANDFLASH"
    "DefaultFileSystem"="FATFS"
    ;; Making storage device as a root
    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk\FATFS]
    "MountAsRoot"=dword:1
    "MountAsBootable"=dword:1
    "MountPermanent"=dword:1
    "AutoPart"=dword:1
    "AutoFormat"=dword:1
    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\FlashDisk\FATFS\Filters\fsreplxfilt]
    "dll"="fsreplxfilt.dll"
    "order"=dword:1 ; must be loaded before other filters
    #endif
    ;===============================================================================
    and .bat file entries are as -
    set SYSGEN_FSREPLXFILT=1
    set PRJ_ENABLE_FSEXTREPL=1
    set PRJ_ENABLE_FSMOUNTASROOT=1
    Where I am missing some thing please tell me???????

  • Building jtree to represent local file system

    Does anybody have the code to work through a local file system and display this information in a jtree.
    If possible it would be nice to only expand the tree when the node is selected rather than having to build up an array and have a prebuilt tree.

    You have to extend DefaultTreeModel and override several following methods:
    getChildCount(Object�parent)
    getChild(Object�parent, int�index)
    isLeaf(Object�node)
    getIndexOfChild(Object�parent, Object�child)
    may be some other methods.
    for example
    file system is c:\test
    and you want to add your own directory test1. Your method getChildCount must returns 2 (1 test + 1 test1). Your method getChild(nodeRepresentC,0) must returns testNode and getChild(nodeRepresentC,1) must returns test1Node. etc.
    regards
    Stas

  • Content Server with File System Based Content Repository

    Typically the SAP Content Server is installed with a SAPDB database. The content server software serves the content from the content repository - the SAPDB database.
    I recall reading a few years ago about (unofficial?) plans from SAP to support file system based repositories, with the content server controlling access. So from a KPRO application perspective, whether the document was in a database or on a filesystem is hidden.
    Can anyone tell me whether this is available yet? And if so, under Windows operating systems?
    Regards
    Andrew

    HI Frank Weitzdörfer  ,
    Could you share about architecture of this scenario ?
    Can I use a simple PC as content repository and keep content server  and R/3 System in the same box and define some link between CS & PC based repository.
    Regards
    Gopal Jaiswal

  • 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 )

  • How to design a file system based on java card

    I have reviewed all kinds of articles about it.And right now I can not find any source code to do that function.But how to design a full gsm file system using java card.
    of course you need fast access,dynamic allocate memory,file properties management.Let's talk about it.

    just do it.
    there is no such feature in the javacard api. This must be coded by hand, you have to manage memory, etc.
    I know, that's not cool.

  • How do I use a NAS file system attached to my router to store iTunes purchases?

    We have four Windows devices networked in our house.  They all run iTunes with the same Apple ID so when any one of them has iTunes running, we can see that computer on our Apple TV.  Two run Windows XP, one runs Vista Business, and the newest runs Windows 7.  Upgrading all to the same Windows software is out of the question.  Our NAS is hung on an "off warranty" Linksys E3000 router which communicates via USB with a 1TB NTFS formatted Western Digital hard drive.  Our plan when we set up this little network, not cheaply, in our 1939 baloon construction tank of a house, was to build our library of digital images, music, and video primarily on that device.  It supports a variant of Windows streaming support, but poorly.  The best streaming support for our environment seems to be our ethernet connected Apple TV which is hung off the big TV in our family room, and has access to the surround sound "Home Theater" in that room.  We've incrementally built up collections of photos, digitized music, and most recently educational materialsd, podcasts, etc. which threaten storage limits on a couple of default C: drives on these windows systems.  iTunes, before the latest upgrades, gave us some feedback on the file system connections it established without going to the properties of the individual files, but the latest one has yet to be figured out.  MP3's and photos behave fairly well, including the recently available connection between Adobe software and iTunes which magically appeared, allowing JPEG files indexed by Adobe Photoshop Elements running on the two fastest computers to show up under control on the Apple TV attached 56' Samsung screen! 
    Problems arose when we started trying to set things up so that purchases downloaded from the iTunes store ended up directly on the NAS, and when things downloaded to a specific iTunes library on one of the Windows boxes caused storage "issues" on that box.  A bigger problem looming in the immediate future is the "housecleaning" effort which is part of my set of "new years resolutions."  How do I get control of all of my collections and merge them on the NAS without duplicate files, or when, for example, we have .ACC and .MP3 versions, only the required "best" option for the specific piece of music becomes a candidate for streaming?
    I envission this consolidation effort as a "once in a lifetime" effort.  I'm 70, my wife is 68 and not as "technical" as I am, so documented procedures will be required. 
    I plan to keep this thread updated with progress and questions as this project proceeds.  Links to "how to" experiences which are well documented, etc. may be appreciated by those who follow it.  I plan to post progress reports and detailed issues going forward.   Please help?

    Step 1 - by trial and error...
    So far, I have been able to create physical files containing MP3 and JPG on the NAS using the Windows XP systems to copy from shared locations on the Vista and Win7 boxes.  This process has been aided by the use of a 600 GB SATA 2 capable hard drive enclosure.  I first attach to Win 7 or Win Vista and reboot to see the local drive spaces formatted on the portable device.  Then I copy files from the user's private directories to the public drive space.  When the portable drive is wired to an XP box, I can use Windows to move the files from the portable device to the NAS without any of the more advanced file attributes being copied to the NAS.  Once the files are on the NAS, I can add the new folder(s) to iTunes on any of the computers and voila, the data becomes sharable via iTunes.  So far, this works for anything that I have completely purchased, or for MP3's I made from the AIC files created when I purchased alblums via iTunes. 
    I have three huge boxes full of vynl records I've accumulated.  The ones that I've successfully digitized via a turntable attached to the sound card on one of my computers and third party software, have found their way to the NAS after being imported into iTunes and using it to bring down available album art work.  In general I've been reasonably well pleased with the sound quality of digital MP3 files created this way, but the software I've been using sometimes has serious problems automatically separating individual songs from the album tracks and re-converting "one at a time" isn't very efficient.

  • Store \ Retrieve files from file system

    Hi to all!
    I would like to implement a solution for storing files uploaded via apex user interface to servers file system. As well I would like this files to be retrievable by apex users. I designed the following solution:
    For upload:
    1. Through file browse item user chooses file to be uploaded
    2. File goes to custom table (as BLOB)
    -- so far i would use apex Upload\Download files tutorial
    3. File(BLOB) would then have to be written to file system to some directory and file id would have to be written to some db table which holds pointers to files on file system
    4. delete file(blob) from custom table (from step 2)
    For download:
    1. user chooses link from some report region(based on table giving file pointers to files residing on file system)
    2. file identified with chosen file pointer is then inserted into blob column of some custom table in db
    3. from custom table with download procedure fie is finally presented to user
    4. delete file(blob) from custom table (from step 2)
    Using apex tutorial for Upload\Download files it is straitforward to get the files from db table or into db table using blobs. But i have not seen any example of using BFILE or migrating files from db to file system and vice versa.
    So some Q arise:
    a) How can I implement step 3 under For upload section above
    b) How can I implement step 2 under For download section above
    c) Is there any way to directly upload file to file system via apex user interface or to directly download file from file system via some report region link column?
    Please help!!!
    Regards Marinero
    Message was edited by:
    marinero

    marinero,
    Here is a procedure that will copy an uploaded file to the file system:
      Procedure BLOB_TO_FILE(p_file_name In Varchar2) Is
        l_out_file    UTL_FILE.file_type;
        l_buffer      Raw(32767);
        l_amount      Binary_Integer := 32767;
        l_pos         Integer := 1;
        l_blob_len    Integer;
        p_data        Blob;
        file_name  Varchar2(256);
      Begin
        For rec In (Select ID
                              From HTMLDB_APPLICATION_FILES
                             Where Name = p_file_name)
        Loop
            Select BLOB_CONTENT, filename Into p_data, file_name From HTMLDB_APPLICATION_FILES Where ID = rec.ID;
            l_blob_len := DBMS_LOB.getlength(p_data);
            l_out_file := UTL_FILE.fopen('UPDOWNFILES_DIR', file_name, 'wb', 32767);
            While l_pos < l_blob_len
            Loop
              DBMS_LOB.Read(p_data, l_amount, l_pos, l_buffer);
              If l_buffer Is Not Null Then
                UTL_FILE.put_raw(l_out_file, l_buffer, True);
              End If;
              l_pos := l_pos + l_amount;
            End Loop;
            UTL_FILE.fclose(l_out_file);
        End Loop;         
      Exception
        When Others Then
          If UTL_FILE.is_open(l_out_file) Then
            UTL_FILE.fclose(l_out_file);
          End If;
      end; And here is a procedure that will download a file directly from the file system:
      Procedure download_my_file(p_file In Number) As
        v_length    Number;
        v_file_name Varchar2(2000);
        Lob_loc     Bfile;
      Begin
        Select file_name
          Into v_file_name
          From UpDownFiles F
         Where File_id = p_file;
        Lob_loc  := bfilename('UPDOWNFILES_DIR', v_file_name);
        v_length := dbms_lob.getlength(Lob_loc);
        owa_util.mime_header('application/octet', False);
        htp.p('Content-length: ' || v_length);
        htp.p('Content-Disposition: attachment; filename="' || SUBSTR(v_file_name, INSTR(v_file_name, '/') + 1) || '"');
        owa_util.http_header_close;
        wpg_docload.download_file(Lob_loc);
      End download_my_file;I could put a sample application on apex.oracle.com, but it wouldn't be able to access the file system on that server.

  • Problem with DMGs and error: "No Mountable File Systems"

    Problem with DMGs and error: "No Mountable File Systems"
    The files are not corrupt. The problem is occurring with all DMGs that are apparently formatted in MS-DOS FAT16. No the file will not mount with Disk utility or any other disk mounter programs I have found.
    This is now the second time this occurred and now effects my MBP and my iMac. First time i spent days with Apple support and the only solution was ultimately back up the data, reformat the HD, start over from scratch and reload everything. That lasted about a month before the problem resurfaced and is now an issue on both iMac and MBP.
    I tried to identify all the programs I installed immediately before the error, as I am convinced it is the result of a software conflict.
    Recent programs includes:
    1) upgrading from Parallels 5.5 to 6.0 on both machines.
    2) using an HP secure II usb drive and setting up a secure disk.
    3) installing new itunes 10
    4) new update to Flip For Mac.
    The files affected are downloaded dmgs, including personal brain and google earth, both which are formatted in FAT16.
    Any help or thoughts? Apple has now spent hours trying and they say i now have to reformat and wipe and start over. That is unacceptable and based on pasted experience the problem is likely to repeat itself. having to wipe and rebuild a HD ever month is not an solution. i need to fid the root problem.
    In the meantime, anyone got a real solution on how to extract the data for a DMG using a different method?
    Message was edited by: remaia

    Where you able to find the solution, i am having the same problem, all was fine till i install some programs only same one i saw did we both did was flip4mac i uninstalled it but the problem is still there, i also restored and erased the hardrive but im not up to doing that all over again. If you found anything out let me know i would greatly appreciate it

  • Using flash to display images from sql server or file system

    hello,
    what methods and parameters of the urlloader class we have to use to display images in a flash player if possible..
    also movie should update everytime a new image is added to a database or file
    the images can either be in a file system or in a sql database (if possible)
    does flash comes with an object of this type or we have to create it.
    regards,

    i responded to your duplicate message 4 days ago:
    is it possible to insert and retrieve images from sql server using actionscript.
    you'll need server-side script to query your database and you can use the flash urlloader class to call your script.
    also  is it possible to create a flash scrolling gallery based on images  stored in a database and everytime an image is added it is displayed in  the gallery.
    load the data using the urlloader class and  then load the images.  periodically query the database for new images if  there's no direct way for flash to know a new image was added.

Maybe you are looking for