> But really, I'm just trying to make some components that are as
> "universal"
[quoted text clipped - 15 lines]
> I'm using the newsgroup as a sounding board; maybe people can suggest some
> good approaches for me - or some that should be avoided like the plague.
I wrote Dynamic Tree Framework - with it you can view most of things
you need (except files in databases).
The bad news is that I there are no way to use it with java's JFileChooser.
The good news is that you can use it with simple JTree and you can easy
implement your own handler (for example for database).
see tutorial
http://jgui.imagero.com/tutorial.html#explore
http://jgui.imagero.com/tutorial.html#browseURL
http://jgui.imagero.com/tutorial.html#browseANY
and javadoc
http://jgui.imagero.com/doc/com/imagero/gui/swing/tree/package-summary.html
http://jgui.imagero.com/doc/com/imagero/gui/swing/tree/handler/package-summary.html
http://jgui.imagero.com/doc/com/imagero/gui/swing/tree/node/package-summary.html
http://jgui.imagero.com/doc/com/imagero/gui/swing/tree/util/package-summary.html
it is part of JGui (JGui 1.38 is open source - GPL)
download here http://jgui.imagero.com/download.php
Another (may be better) way could be to create interface (e.g. VirtualFile)
and implement it.
For one project I started with following:
public interface VFile {
String getName();
String getDisplayName(); //for specific things (like desktop in
windows)
String getParent();
VFile getParentFile();
String getAbsolutePath();
boolean isDirectory();
boolean isHidden();
String [] list();
String [] list(VFilenameFilter filter);
VFile create(String name); //create child with specified name
boolean exists();
int getPos(); //for sorting purposes
InputStream getInputStream() throws VFileNotFoundException;
OutputStream getOutputStream() throws IOException;
}
I implemented it currently only for standalone files, but want to add
implementation for database.

Signature
Andrey Kuznetsov
http://uio.imagero.com Unified I/O for Java
http://reader.imagero.com Java image reader
http://jgui.imagero.com Java GUI components and utilities
Rhino - 31 Oct 2005 14:12 GMT
> > But really, I'm just trying to make some components that are as
> > "universal"
[quoted text clipped - 28 lines]
>
> and javadoc
http://jgui.imagero.com/doc/com/imagero/gui/swing/tree/package-summary.html
http://jgui.imagero.com/doc/com/imagero/gui/swing/tree/handler/package-summary.html
http://jgui.imagero.com/doc/com/imagero/gui/swing/tree/node/package-summary.html
http://jgui.imagero.com/doc/com/imagero/gui/swing/tree/util/package-summary.html
> it is part of JGui (JGui 1.38 is open source - GPL)
> download here http://jgui.imagero.com/download.php
[quoted text clipped - 24 lines]
> I implemented it currently only for standalone files, but want to add
> implementation for database.
It looks as if you have already developed the components I'm just starting
to imagine; well done!! I will look further into your components - and maybe
add some enhancements of my own :-)
It just seems to me that the source of the files should be unimportant to
the programs that use them; the program should work the same regardless of
where the files originate. This seems like a good step in that direction....
Rhino