× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



>You know how in windows explorer you have the + sign next to folders, you 
>click it the folders expand, etc.  Anyone know how to do this? 



Ron, look at the javadocs on JTree, DefaultTreeCellRenderer and other related.  
Also look at the topic in general: 
http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html

    I've been able to completely replace the folder images and use my own 
custom images thar are more appropiate for the data I'm displaying with the 
Tree. What you want to do is replace the plain folder image with one that has a 
plus next to it. You can go beyond this using different icons for whatever 
criteria you may define. (This may be overkill for your application)

Also take a look at this short tip: 
http://www.developer.com/java/other/article.php/768051

One final note, I recall reading somewhere that Microsoft own some sort of 
patent on use of plus/minus images for this file-browsing context. Maybe others 
on the list can verify whether this is true or just a hoax/urban legend.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.