Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: JFileChooser for the server browsing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JFileChooser for the server browsing



Dmitry,

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:\, ..).

-Werner


Dmitry Markman wrote:
> Hi
> server content we'd like to show has nothing to do with client file's
> system
> generally, we want to show the some path hierarchy:
>
> a/b
> a/b/c
> a/b/ccc
>
> e.t.c.
>
> where a, b and c some names
>
> I'll try to prepare simple code and I'll send it to you today/tomorrow
> thanks

 _______________________________________________
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

References: 
 >Re: JFileChooser for the server browsing (From: Dmitry Markman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.