Knowing a tree file system explorer component?

  • Follow


Hello,

Do you know a component providing a tree view of the filesytem? (like
the left part of windows explorer but also showing the files)

I plane to use it in a commercial product, so it must be a LGPL or
commercial component...

I wrote a basic version of this component. I used a JTree and get the
data from a JFileChooser. It works but slowly. And there's many
features not implemented... I'm not particulary interested in
optimizing it, that why i'm asking for a redistributable component...

Thank You

regards,

Vincent
0
Reply vclassine 8/19/2003 7:42:25 AM

Vincent wrote:
> Hello,
> 
> Do you know a component providing a tree view of the filesytem? (like
> the left part of windows explorer but also showing the files)
> 
> I plane to use it in a commercial product, so it must be a LGPL or
> commercial component...
> 
> I wrote a basic version of this component. I used a JTree and get the
> data from a JFileChooser. It works but slowly. And there's many
> features not implemented... I'm not particulary interested in
> optimizing it, that why i'm asking for a redistributable component...

Why did you get the files through JFileChooser?
Making a TreeModel using information from
File.listFiles() is quite easy.



0
Reply Jacob 8/19/2003 9:30:33 AM


We started with some code from this Swing book (that I purchased 
recently): http://www.manning.com/sbe/

http://manning.com/sbe/files/uts2/Chapter17html/Chapter17.htm

The source code for the examples are at:
http://manning.com/sbe/files/uts2/swing.zip

We just added some logic for lazy loading of the file structure and
refreshing the file list based on the timestamp of the directory nodes.

Jacob wrote:
> Vincent wrote:
> 
>> Hello,
>>
>> Do you know a component providing a tree view of the filesytem? (like
>> the left part of windows explorer but also showing the files)
>>
>> I plane to use it in a commercial product, so it must be a LGPL or
>> commercial component...
>>
>> I wrote a basic version of this component. I used a JTree and get the
>> data from a JFileChooser. It works but slowly. And there's many
>> features not implemented... I'm not particulary interested in
>> optimizing it, that why i'm asking for a redistributable component...
> 
> 
> Why did you get the files through JFileChooser?
> Making a TreeModel using information from
> File.listFiles() is quite easy.
> 
> 
> 

0
Reply Rob 8/21/2003 3:50:55 PM

Jacob <jacob@yahoo.com> wrote in message news:<3F41EE39.8020809@yahoo.com>...
> Vincent wrote:
> Why did you get the files through JFileChooser?
> Making a TreeModel using information from
> File.listFiles() is quite easy.

To get the display icon & the display name associateed with each files...
0
Reply vclassine 8/25/2003 7:10:05 AM

Rob Ratcliff <rratcliff@ticom-geo.com> wrote in message news:<zT51b.884$nA5.171449@dca1-nnrp1.news.algx.net>...
> We started with some code from this Swing book (that I purchased 
> recently): http://www.manning.com/sbe/
> 
> http://manning.com/sbe/files/uts2/Chapter17html/Chapter17.htm
> 
> The source code for the examples are at:
> http://manning.com/sbe/files/uts2/swing.zip
thanks for this link. For me it's to different from a system explorer,
but I will merge it with my version to get some interesting ideas...

> We just added some logic for lazy loading of the file structure and
> refreshing the file list based on the timestamp of the directory nodes.
that's a good idea, I will do it...

I wonder if you know how to set the tree to have a simple clig drag.
In fact with the default settings you have to click once to select the
node and to click a second time and move to drag the node. If you just
click and move to drag a non selected node it just select it. Do you
know how to change it?

Thanks again.

Goodbye
0
Reply vclassine 8/26/2003 12:05:33 PM

Hunt on the Sun web site for JTreeTable. The sample program supplied
with the source does something that might be what you're looking for.
It has models, the lot.

Steve
0
Reply steve 8/26/2003 3:26:12 PM

5 Replies
172 Views

(page loaded in 0.526 seconds)

Similiar Articles:













7/18/2012 2:49:45 PM


Reply: