🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: repost: modifying JFileChooser

#7735
From: Kevin Dwan
Date: Fri, 05 Jan 2001 19:46
49 lines
2765 bytes

"John McGrath [TeamB]" wrote:

> On Thu, 04 Jan 2001 16:42:41 -0800, Kevin Dwan wrote:
>
> > 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.
>
> What is the "File name: /_____/ /_OPEN_/" dialog you are referring to?
> A JFileChooser is shown in a dialog if you use one of the various
> showXxxxDialog() methods.  Is this what you mean?
>
> --
> Regards,
>
> John McGrath [TeamB]
>
> ---------------------------------------------------
> Before sending me e-mail, please read:
>     http://www.JPMcGrath.net/newsgroups/e-mail.html

Okay, sorry for the confusion.

I am concerned about two panels in a project, one of which allows users to
select one/multiple files, and the second which allows them to choose an
output directory.

I have two file choosers (and am using JDK 1.3.0), one in each panel, and
I do not use any showDialogs. I am doing my own Approve/Cancel buttons,
and am doing setControlButtonsAreShown(false) and roll my own
Approve/Cancel buttons.

What happens is that the IDE's Design view shows the Open button in the
first (FILES_AND_DIRECTORIES) filechooser and the Open and Cancel buttons
in the second (DIRECTORIES_ONLY) filechooser, but at runtime, the Open and
Cancel buttons are not visible--just my own Approve Choices/Cancel Choice
buttons. This is what I want.

My first question, about  "File name: /_____/ /_OPEN_/" dialog, is a
non-issue, since the "Open" only appears in Design view, and isn't going
to bother my users.

My question is how to modify the "File name: /_____/" label in my second
(DIRECTORIES_ONLY) filechooser so that it says "Directory chosen".

Perhaps the post that followed yours (by Niall Pemberton) will deal with
this.
Technical Details
Message-ID: <3A56248E.70E29EA@blueberry.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.maxwell.syr.edu!neel.uni2.net!newssuck.uni2.dk!bornews.borland.com!not-for-mail
References: <3A551881.D61DEB98@blueberry.com> <MPG.14bf55594c8634f2989e40@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,89fb584cc774168e
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2001-01-05 12:00:05 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!news.maxwell.syr.edu!neel.uni2.net!newssuck.uni2.dk!bornews.borland.com!not-for-mail
From: Kevin Dwan <kevin@blueberry.com>
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: repost: modifying JFileChooser
Date: Fri, 05 Jan 2001 11:46:22 -0800
Organization: Another Netscape Collabra Server User
Lines: 54
Message-ID: <3A56248E.70E29EA@blueberry.com>
References: <3A551881.D61DEB98@blueberry.com> <MPG.14bf55594c8634f2989e40@forums.borland.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