🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #1021

How to prevent the filechooser resolving symblic links

#1021
From: Zoran Pjevic
Date: Wed, 15 Sep 2004 12:45
24 lines
1491 bytes
Hello everybody

I am using a filechooser object to select files.

JFileChooser _fileChooser =  new JFileChooser();
File[] selectedfiles = _fileChooser.getSelectedFiles();

for (int i =0 ; i < selectedfiles.length; i++) {
   //path = selectedfiles[i].getCanonicalPath();
   path = selectedfiles[i].getPath();
}

The _fileChooser.getSelectedFiles() returns already absolute path
names. So no matter if I call getPath or getCanocialPath I get the
abosolute path names.

But I want to display symbolic links as relative pathnames.

Is there a way to accomplish this?

Any help I will welcome.

Thanks in advance,
Zoran
Technical Details
Message-ID: <dpdgk0524l0g2f41rt1fiein9cj6t7lj4p@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,8eb7d817b4177417,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Zoran Pjevic <zpjevic@anitesystems.de>
Newsgroups: borland.public.jbuilder.java.swing
Subject: How to prevent the filechooser resolving symblic links
Date: Wed, 15 Sep 2004 14:45:04 +0200
Message-ID: <dpdgk0524l0g2f41rt1fiein9cj6t7lj4p@4ax.com>
X-Newsreader: Forte Free Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 213.157.29.250
X-Trace: newsgroups.borland.com 1095252137 213.157.29.250 (15 Sep 2004 05:42:17 -0700)
Lines: 27
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail