🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15486

Re: How can I change directory?

#15486
From: Tor Iver Wilhelmsen
Date: Mon, 31 May 1999 00:00
12 lines
1049 bytes
Steve Horsley <steve.horsley@cwcom.co.uk> writes:

> I have written a little TFTP server. Currently, it serves files in 
> whichever directory it is started in. I would like to have a dialog
> box that changes its default directory, but can't find anywhere in 
> the API that lets me do this. 

Your basic problem is that you don't have an underlying shell
environment, so you need to keep tab on where you are manually:
FileDialog or JFileChooser could be of interest: Just call
fileDialog.getDirectory() or
jFileChooser.getSelectedFile().getAbsolutePath() to get the path.
Technical Details
Message-ID: <u3e0d626c.fsf@sds.no>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <374E8F13.15EA206E@cwcom.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,3e0c681cea759a16
X-Google-Attributes: gidf74b3,public
From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no>
Subject: Re: How can I change directory?
Date: 1999/05/31
Message-ID: <u3e0d626c.fsf@sds.no>
X-Deja-AN: 484006525
Sender: towi@SDSA1761
References: <374E8F13.15EA206E@cwcom.co.uk>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language