Hello all,
I would like to have file browsing available inside my
(swing)application, not via a dialogbox. Are there any good classes
already available for this, or must I sit down and write my own?
It feels like pretty much all of what I want is available as internal
components of the JFileChooser, but I can not seem to find any
implementations for them. As I said, any pointers would be helpful. I
just want a tree and a file listing.
regards
Daniel
Paul Hamaker - 19 Jan 2007 10:59 GMT
You could do this using JTree and File('s listFiles, isDirectory,
isFile,...).
http://java.sun.com/products/jfc/tsc/articles/jtree/
Scroll to 'Example: The FileExplorer Browser'
--
http://javalessons.com Paul Hamaker, SEMM
Teaching ICT since 1987
Knute Johnson - 19 Jan 2007 17:21 GMT
> Hello all,
> I would like to have file browsing available inside my
[quoted text clipped - 7 lines]
> regards
> Daniel
Put the JFileChooser in the JFrame just like any other component.

Signature
Knute Johnson
email s/nospam/knute/
Daniel - 19 Jan 2007 23:13 GMT
>> Hello all,
>> I would like to have file browsing available inside my
[quoted text clipped - 9 lines]
>
>Put the JFileChooser in the JFrame just like any other component.
I did try this already, the problem is that the JFileChooser contains
a number of extra controlls, that does not fit well with my
application.
By the sounds of it it seems that the only way is indeed to follow
that tutorial in the documentation for java. I just wondered if there
already were components out there.
thanks anyway for the responses.
regards
Daniel