Article View: borland.public.jbuilder.java.swing
Article #9876setCurrentDirectory syntax?
From: Kevin Dwan
Date: Tue, 21 Dec 1999 00:00
Date: Tue, 21 Dec 1999 00:00
14 lines
1016 bytes
1016 bytes
Will someone please advise as to the correct syntax for passing a File name using setCurrentDirectory (a method of Java.io.File) so as to set the current directory displayed of a JFileChooser, using the below? For some reason I'm just not getting it. (SrcFilechooser and lastdir have been instantiated earlier in the code.) JFileChooser = SrcFilechooser; String lastdir; File last = new File(lastdir); ???????? //SrcFilechooser is set to display "last" as its directory here Thanx.
Technical Details
Message-ID:
<385F9CF8.BA48EF5A@blueberry.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,278c950488166bbd,start X-Google-Attributes: gid111d45,public From: Kevin Dwan <kevin@blueberry.com> Subject: setCurrentDirectory syntax? Date: 1999/12/21 Message-ID: <385F9CF8.BA48EF5A@blueberry.com> X-Deja-AN: 563586862 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing