🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JFileChooser in Win98

#9354
From: James Cook
Date: Mon, 17 Apr 2000 00:00
37 lines
1557 bytes
It's a bug in JDK1.2 on all platforms. There are some approaches to a
workaround listed in the bug report on Sun's site.

jim

Daniel P. Horn <dan@nerds.com> wrote in message
news:8dg5g7$4o6@bornews.borland.com...
> Is there a problem using the JFileChooser class from JDK 1.2.2 in Win98?
>
> My code is basically:
>
> chooser.setMultiSelectionEnabled(true);
> chooser.showOpenDialog(this);
> File[] files = chooser.getSelectedFiles();
>
> When I run this code under Win98, I select at least one file in the
dialog,
> and choose OK to close;
> for some reason, the length of the files array always comes back as 0.
>
> If I compile this code with JDK 1.3RC3, this code works as I expect under
> Win98.
>
> Is there something I need to do differently to get this to work with JDK
> 1.2.2?
>
> (I'm also testing under Win2000, but JFileChooser from 1.2.2 has more
> fundamental problems
> running under Win2000; namely it crashes).
>
> Thanks for the help,
>
> Dan
> dan@nerds.com
>
>
>
Technical Details
Message-ID: <8dgdfp$4t9@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8dg5g7$4o6@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,c93928634666228d
X-Google-Attributes: gid111d45,public
From: "James Cook" <jimcook@visualxs.com>
Subject: Re: JFileChooser in Win98
Date: 2000/04/17
Message-ID: <8dgdfp$4t9@bornews.borland.com>
X-Deja-AN: 612492879
References: <8dg5g7$4o6@bornews.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.swing