Article View: borland.public.jbuilder.java.swing
Article #7721repost: modifying JFileChooser
From: Kevin Dwan
Date: Fri, 05 Jan 2001 00:42
Date: Fri, 05 Jan 2001 00:42
22 lines
1921 bytes
1921 bytes
I posted the below on 12/15/00 and didn't get a response: I'm hoping it just fell through the holiday cracks, but if what I want is flat impossible, I'd appreciate a quick "That's impossible" from someone knowledgeable (or a pointer to another newsgroup or other resource). TIA. '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' 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. ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''' I'd also like to modify the standard "File name: /______/" label to more appropriately read, "Directory selected: /____/"
Technical Details
Message-ID:
<3A551881.D61DEB98@blueberry.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!news.imp.ch!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII-7-bit X-Google-Thread: 111d45,89fb584cc774168e,start X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2001-01-04 16:46:07 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!fr.clara.net!heighliner.fr.clara.net!news.imp.ch!news-zh.switch.ch!newsfeed-zh.ip-plus.net!news.ip-plus.net!bornews.borland.com!not-for-mail From: Kevin Dwan <kevin@blueberry.com> Newsgroups: borland.public.jbuilder.java.swing Subject: repost: modifying JFileChooser Date: Thu, 04 Jan 2001 16:42:41 -0800 Organization: Another Netscape Collabra Server User Lines: 24 Message-ID: <3A551881.D61DEB98@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