Directory tree intergrated, how?

Hi!
Im trying to figure out how to intergrate a directory listing (tree) in a application.
Just like that "open file dialog" but it should not be a popup but intergrated.
Thankful for every little piece of advice I can get.
/Comwan

You can
- Use a JTree
- Create a class FileNode that extends DefaultMutableTreeNode
- Add a function for recursion that returns a node to be added
- Display custom icons-colors with renderers
This address might help you out at least getting started :
http://www.phptr.com/articles/article.asp?p=26327&seqNum=16

Similar Messages

  • In OS 10.7.5, how do I get a listing of folders similar to the "directory tree" that I used to have when I was suffering through MS-DOS?

    In OS 10.7.5, how do I get a listing of folders similar to the "directory tree" that I used to have when I was suffering through MS-DOS?

    I'm not quite sure what it is you are looking for, but there are a three different ways to view the files and folder in a directory in Finder - Icon view, List view, or Column view - or you can use Terminal and use the various options for the ls UNIX command for listing a directory. For those options, see:
    https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/ man1/ls.1.html
    Hope this helps.
    Regards.

  • Best practice for designing a directory tree

    Hello all,
    I wanted to know what you all think about what is the best way to design a directory tree. Again it seems to me that experience makes the man perfect and I wanted to know what you all think about how to design directory tree model.
    Here is my view; I believe that keeping at least Users/ Employee information flat make more sense to me. I know it’s a good idea that one should consider an organizational hierarchy when designing a tree. But there seems to be some problem too. If employee moves from one department to another within the same organization then directory administrator has to change the location/department of the user. However, if all users are under the same namespace i.e. ou=Users, administrator does not have to change or move users location in the directory to another location.
    Also, while designing a directory there could be several hierarchy, one is organizational hierarchy another could be organizing user info based on job roles i.e. CEO->VPs-Managers->Consultant.... and so on so. So which one should consider. So by considering ou=Users namespace, we are avoiding risk on favoring one type of hierarchy.
    The trade-off in using ou=Users a flat namespace is that browsing of the directory looks less interesting.
    Anyway, this is my view, I would like to know your views too and hope this thread will help other in building their own directory Tree.
    Thanks
    Syed Suhail Ahmad

    Honestly it really depends on what you need your system to do and how you want to handle administration. I have read the argument about keeping things simple with using ou=USERS and seems like the best situation for administration purposes. Currently my client is wanting all identity management to be handled in OID so I am in the process of doing our hierarchy also. I still have to explore the abilities of OID to see how I can set things up.
    There are a few good books and websites that are good for referencing ldap. One book I use is LDAP Programming, Management, and Integration by Donley. For websites, just search on google or check out www.ldapguru.com or www.openldap.org(possibly).
    Hope this helps a little. I honestly can speak on the best way since I haven't implemented my own yet nor do I think one way will always be best for every situation.

  • Transfer of all files in a directory tree using FTP adapter?

    Hi,
    I'm looking for a solution to transfer a whole directory tree, including the content, from one location to another using the FTP adapter.
    Is there an easy way to accomplish this?
    Any help would be appreciated.
    Thanks
    Sigrid

    Hi Sigrid,
    I'm just wondering on the need to do that using SOA. Is it a regular transfer or one time?
    There's a way to move a single file from one FTP location to another on the same or different FTP server (link to the cases). But in order to move all the files in a directory, you'll have to loop this. The high level steps will be:
    - List all the files recursively that are present in your directory using File List operation
    - Implement the MOVE file operation (or COPY operation) of the FTP Adapter
    - Invoke this MOVE operation in a while loop and pass the file names, as gathered from the File List operation, one by one to MOVE operation
    You can also use single Java Embedding activity and call a Java class that does the File Transfer but depends on your requirements.
    Let us know how you get along.
    Regards,
    Neeraj Sehgal

  • Creating a directory tree

    Hello
    I am a newbe in java/jsp and i want to create a session java bean which can contain the structure of a directory tree. Like the one of windows explorer. I am having a java been containig the cuurent state of the tree. Should thid bean be a vector of vectors of vectors or is there a better way to store the trees current structure. And if i make it like vector of vectors will i be able to iterate the multidimansional vectors with jsp tags??
    Any ideas on how to make the file tree?
    Thnx for any tip!

    You can use the JSP Tree Tag I have developed. This helps you both structuring the tree model itself + it takes care of displaying the tree in a nice way. You can change all HTML code used to display the tree. Also you can build trees dynamically instead of just displaying static trees. Take a look at it here:
    http://www.jenkov.dk/projects/treetag/treetag.jsp
    Kind Regards,
    Jakob Jenkov

  • Directory Tree Portlet

    We are looking for a portlet that will allow content providers to create new folders via a simple Windows Explorer (directory tree) style interface. We need the interface to be properly linked to the database so that it reflects the current structure and so that folders can also be deleted via the same interface. It should have all the basic expanding and collapsing features and I would like it to show the content of the folders like Explorer does. Can anyone give me guidance on whether such a portlet already exists or how difficult it would be to develop if it does not exist? (Or maybe I'm headed down the wrong path here and should use a completely different solution...)
    All help would be appreciated. Thank you.
    Kevin
    null

    This sounds more like an iFS requirement. It does all that (and more!), but not as a portlet (yet?).
    You can approximate the directory tree with a Portal Content area (which is available as a portlet), and you get pretty much everything except the expand/collapse bit. It's more along the lines of drill down/drill up.
    --Kelly                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Directory tree interface

    How would i go about making an interface which looks like a directory tree within a webpage.
    by directory tree interface i mean something which looks like this
    http://www.java2s.com/Code/CSharpImages/DirectoryTreeHost1.PNG

    iconofsin14 wrote:
    no i want a non-static list
    i was wondering if the list (and + icons) could be made by css and html lists alone.
    i already new that the expanding feature would require JS
    If you look at the example given by David and go to jqueryFileTree.css you will notice the style rules that have been used to supply an image to the list element. In this example the classes are determined by a JS function.
    In your case you need to create an image carrying a plus sign and apply that in the same manner.
    Gramps

  • Search a Directory Tree For a Directory

    Hello All,
    Alright, the backround first. I am working on a system for managing photos for cases. So, the top photos dir has 5 dirs represnting the years. In each of those, are months, in those are days, and in the days there are dir named for the casenumber. This may sound confussing but...Say for Case number 05-00001 which happened January 1st 2005, the photos would be in ./photos/2005/1/1/05-00001/Now I cant change the dir structure because this is how the system uploads them, but I need a program to search this dir tree when the person enters a case number and return the photos. Everything works great (from a logic standpoint) but the problem is that there are about 20,000+ cases a year and if the case is toward the end it takes FOREVER to search through them all.
    What I am looking for is suggestions on how to most efficently search for these cases...
    Thanks,
    Matt

    a particular string. I was able to read one file in
    a single directory but not in any other directory.
    How would I go about writing code to be able to
    access all files in directory that has multiple sub
    folders.
    You can do that several ways.
    Most likely you'll end up with some sort of recursive iteration over the directory tree.
    Not hard to write, somewhat harder to prevent memory problems if you end up with a lot of data.
    Also, when I started to write my program I tried to
    use the DOM XML Parser to parse my html page. My
    logic behind this decision was that if you look at
    html code it is an xml document. But as I was
    trying to run my program I noticed that I had to
    convert my html document into xml format. I really
    don't want to have to build my own html parser. Is
    there a html parser that is included in Java. Oh my
    program is just your basic text program. No
    interfaces.
    A VALID xhtml document is a valid XML document.
    Problem is that most HTML isn't xhtml.
    Another problem is that most HTML is fundamentally broken even to its own standards (which have always been based on SGML on which XML is also based).
    Browsers take that into account by being extremely lax on standards compliance and effectively making up tags as they go along to fill in the missing ones in the trees they parse.
    That's however not a standardised process and each browser handles it differently (and as a result most html will render differently in different browsers).
    Java contains a simple HTML parser in Swing, but it's primitive and will only parse a subset of HTML 2.0.
    There are almost certainly 3rd party libraries out there that can do better, both free and/or commercial.

  • Accidentally moving a directory on directory tree happens on occassion, shall be a question: ARE YOU SURE YOU WANT TO MOVE DIR1 to DIR2

    Hello,
    Accidentally moving a directory on directory tree happens on occassion
    shall be a question: ARE YOU SURE YOU WANT TO MOVE DIR1 to DIR2.
    I have a TB profile on USB stick and 2 or 3 times happen that I moved
    accidentally one diretory onto another and run out of space.
    Thunderbird TB crushed and lost lot of emails.
    There shall be a popup asking: ARE YOU SURE YOU WANT TO MOVE DIR1 to DIR2
    preventing to do that action automatically as it is unstoppable and unreversable
    and in case of low disk space leads to DB corruption.
    Best Regards and please continue great job in developing Thunderbird!

    And I think it would be a very nice enhancement and shall be added anyway.
    (After first popup, there shall be a checkbox - do never ask again)
    Once you face the problem (don't now how big your DB is, mine 20GB, 9 years) then maybe you change your mind. How many times a day you reorganize your folders? Have your moved a folder bigger then 2 or 3 GB by click?

  • KM Thumbnail Explorer with directory tree

    Hello SAP Experts,
    I'd like to implement a gallery of jpg images with thumbnails. I used KM Navigation iView with ConsumerThumbnailExplorer layoutset. Default view is all pics from all subdirectories on one page. How to change this view to split directory tree (on left) and thumbnails (on right) as in AdminExplorer?
    Any help will be appreciated.
    Best regards,
    Pawel Gluba

    Hello Eduardo,
    After serveral tries I've done it. Looks great. Thanks for help.
    Contents of my Layout Set:
    Layout Controller: AdminNavigationLayoutController
    Collection Renderers: AdminBreadcrumb, AdminCollectionTreeRenderer, AppThumbnailGridRenderer
    Resource Renderers: AppThumbnailResourceRenderer, AppThumbnailSubAreaResourceRenderer
    Best regards,
    Pawel Gluba

  • Home directory is full - how do i delete?  It doesn't look full

    After my problems last week - i was able to reindex mail, but now I'm getting doubles of each email and then mail won't work because "my home directory is full"
    How do i delete? Does it mean my home folder on my mailbox account, or my iBook?
    Thanks, guys

    How did you reindex your mail?
    This error message indicates a problem with the Envelope Index file for the Mail.app.
    With the Mail.app quit and using the Finder go to Home > Library > Mail > Envelope Index.
    Delete the Envelope Index file and empty the Trash.
    Copy the Mail folder (which contained the Envelope index file) and place the copy on the Desktop for backup purposes.
    Launch Mail and you will be prompted to import all mailboxes in the Mail folder at Home > Library > Mail.
    Select OK and allow the import process to complete. This isn't really importing anything but replacing the deleted Envelope Index file and reindexing all mailboxes.
    This should resolve the "home directory is full" problem and after confirming all mailboxes and messages are available, you can delete the backup copy of the Mail folder placed on the Desktop.

  • Acroread 9.1.0 reads the full directory tree /usr/share/fonts

    Hi,
    I was wondering why the startup time of acroread is that high on my system (Debian 5.0). I have found out using strace that acroread reads the full content of the /usr/share/fonts/ directory tree (more than 4000 files) during startup in a quite inefficient way.
    First question: why does it read /usr/share/fonts during startup at all and is there a way to disable that behaviour?
    Second question follows: the ext3 requires that an application reading the full content of a directory should sort the file list numerically by inode number before opening the files. It is explained in http://bugzilla.kernel.org/show_bug.cgi?id=417 why the application should be fixed and not the kernel. Can acroread be changed to qsort() the file list between the calls of readdir() and open()?
    Cheers,
    Torsten

    Hello Torsten,
    Thanks for reporting the issue. Could you please let us know if you are opening acroread with a file(either by double clicking on it or giving it as a parameter to acroread). If yes, could you please see if launch time is still high when you do not open a file(launch acroread by clicking on the Desktop icon or launch it from console). Also, it would be helpful if you can mail the strace output to sanika at adobe dot com.
    As for reading the location, it is one of the standard font locations mentioned in /etc/fonts/fonts.conf. If you do not want acroread to use these fonts, you can set ACRO_DISABLE_FONT_CONFIG to 1 on console.
    If you do not want to set this variable every time you launch reader, you can search for "ACRO_DISABLE_FONT_CONFIG" in the launch script, uncomment the relevant section and save the script.
    However, I should warn you that Reader would not be able to use these fonts to display PDFs(substitute fonts would be used instead).
    Sincerely,
    Sanika

  • Msg server implementation with change in directory tree strcucture

    Hello all,
    Our organization is using directory server 5.1 and messaging server5.2.Our company is going for a change of directory tree structure.Can anybody please tell me whether for this change of directory tree structure we will have to again go for a reinstall of our messaging servers.Is there a way by which present messaging servers can be made to operate with new directory server with revamped directory tree structure.We are not going to upgrade to a new version of either directory or messaging server.

    The "schema 1" that 6.0 supports is the two tree system.
    Schema 2 is single tree. You may be able to go that direction, BUT this road is not well documented. There's really no "schema guide" the way there is for 5.2 and "schema 1".
    You can certainly download and install 6.1, and provisioin some test users, and see what it does.
    The mailstore has had only minor changes gooing from 5.1 to 5.2 to 6.0 to 6.1, and the server should automatically and invisibly upgrade as you go.
    the queue is incompatible, so you will need to clear the queue before you upgrade.

  • Directory Tree.

    What I an doing is trying to manage the files, for a small project, and I will be taking care of the documents versions.
    I was wondering if it is possible to to create a the whole Directory tree, where the names of the subfiles can also be displayed.
    I need a pointer in the right direction, rest I will try to do it my self, as I need to ad some functionality according to my needs.
    Information is appreciated.
    Regards
    Harbir

    The JTree Package
    http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/tree/package-summary.html
    http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html

  • Directory tree in Windows

    When I downloaded iTunes it created a directory tree with two subdirectories --- Album Artwork and iTunes Music. All downloads -- music, audiobooks, and movies seemed to be located here. Shouldn't I expected to see a series of subdirectories -- podcasts, movies, audiobooks, music -- for each category of download I've purchased. The reason this comes up is the audiobooks show up as entries in Albums on my iPod and I'd like to get them out of there. When I open the iTunes library they are classified correctly.

    You could write it as a static initializer in your main class. That'll
    cause it to run before anything else.
    Daniel
    Eugene Prokopiev wrote:
    > David Thomson ?????:
    >
    >> This may help:
    >>
    >> String fsep = System.getProperty("file.separator");
    >> String user = System.getProperty("user.dir");
    >> String dir = user+fsep+"win32";
    >> System.setProperty("java.library.path", "C:\\Program
    >> Files\\Suprasphere" + dir);
    >
    >
    > This code must be executed before swt initialization, so I can't write
    > it in constructor of ApplicationWindow child. Where can I write it?
    >

Maybe you are looking for