🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2854

browse dialog filter

#2854
From: Tim Frith
Date: Thu, 24 Feb 2000 00:00
25 lines
1490 bytes
I'm using JBuilder 3 Standard.
I'm making an "open" dialog box using a com.borland.jbcl.control.Filer.

Everything works fine EXCEPT I can't get it to filter the filenames it
displays.  The following code always shows all files (*.*), instead of just
files with my extension (*.tim):

/***************************************/
FilenameFilter filter = new ImportExportFilter("tim");
Filer fileDialog = new Filer(mainInvoiceForm, FILER_EXPORT);

fileDialog.setMode(Filer.SAVE);

fileDialog.setDirectory("C:\\test\\");
fileDialog.setFilenameFilter(filter);
fileDialog.show();
/***************************************/

No errors - it just doesn't work. Can anybody help me?

Also, can anyone tell me how to make Outlook Express not stick 'file://' in
my message whenever I type in 2 slashes!!!

Thanks,
Tim
Technical Details
Message-ID: <lD1t4.26098$_d.1216120@news1.gvcl1.bc.home.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,f5d5a568a9ab6f43,start
X-Google-Attributes: gid1089d0,public
From: "Tim Frith" <timfrith@nospam_home.com>
Subject: browse dialog filter
Date: 2000/02/24
Message-ID: <lD1t4.26098$_d.1216120@news1.gvcl1.bc.home.com>
X-Deja-AN: 589127754
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@home.net
X-Trace: news1.gvcl1.bc.home.com 951363153 24.65.171.9 (Wed, 23 Feb 2000 19:32:33 PST)
Organization: @Home Network Canada
X-MSMail-Priority: Normal
NNTP-Posting-Date: Wed, 23 Feb 2000 19:32:33 PST
Newsgroups: borland.public.jbuilder.java.api