Article View: borland.public.jbuilder.java.swing
Article #9352JFileChooser in Win98
From: Daniel P. Horn
Date: Mon, 17 Apr 2000 00:00
Date: Mon, 17 Apr 2000 00:00
25 lines
1233 bytes
1233 bytes
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:
<8dg5g7$4o6@bornews.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,c93928634666228d,start X-Google-Attributes: gid111d45,public From: "Daniel P. Horn" <dan@nerds.com> Subject: JFileChooser in Win98 Date: 2000/04/17 Message-ID: <8dg5g7$4o6@bornews.borland.com> X-Deja-AN: 612450440 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Organization: Another Netscape Collabra Server User X-MSMail-Priority: Normal Newsgroups: borland.public.jbuilder.java.swing