Article View: borland.public.jbuilder.java.swing
Article #7780possible to hide File name component in JFileChooser?
From: Kevin Dwan
Date: Sat, 16 Dec 2000 00:33
Date: Sat, 16 Dec 2000 00:33
10 lines
1279 bytes
1279 bytes
I'm using a JFileChooser (1.3.0). I want my users to be able to choose a directory only, so I've done: setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY). I'll setControlButtonsAreShown(false) and roll my own Approve/Cancel buttons. This is my question: is there a way to make the "File name: /_____/ /_OPEN_/" dialog not appear, since it's not only inappropriate in the DIRECTORIES_ONLY context, but will puzzle my users.
Technical Details
Message-ID:
<3A3AB86C.EEE92A9E@blueberry.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.online.be!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,beb253ec552c05f9,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2000-12-15 16:16:12 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.online.be!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!not-for-mail From: Kevin Dwan <kevin@blueberry.com> Newsgroups: borland.public.jbuilder.java.swing Subject: possible to hide File name component in JFileChooser? Date: Fri, 15 Dec 2000 16:33:48 -0800 Organization: Another Netscape Collabra Server User Lines: 11 Message-ID: <3A3AB86C.EEE92A9E@blueberry.com> NNTP-Posting-Host: adsl-209-204-172-41.sonic.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.75 [en] (WinNT; U) X-Accept-Language: en