In this case, it may be better to implement a chooser on your own.
JFileChooser is designed for working with the directory of a file system.
Attempting to use it for something else, may lead to trouble.
In the Quaqua Look and Feel there are lots of features present, that
wouldn't make sense for your server side content hierarchy.
e.g. the sidebar which contains objects which the user has dragged into the
sidebar of the Mac OS X Finder, the eject button next to ejectable volumes
(not yet implemented in Quaqua), extended file attributes (color labels,
file kind, file preview).
Also, using File objects forces you to use the platform dependent separator
char. That is, you must design your system to be able to deal with all kinds
of separator chars (on Unix '/', on Windows '\', ...).
You are also forced to deal with platform dependent definitions of absolute
paths (on Unix a path is absolute if it starts with a '/', on Windows the
path also has to start with a drive name A:\, C:\, ..).
Dmitry Markman wrote:
> server content we'd like to show has nothing to do with client file's
> generally, we want to show the some path hierarchy:
> where a, b and c some names
> I'll try to prepare simple code and I'll send it to you today/tomorrow
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden