I'm using JDK 1.2 so I think that implies I'm also using Swing 1.2.
The setMultiSelectionEnabled() method on JFileChooser is documented as
not being implemented yet. Therefore, the call getSelectedFiles() will
never return anything. Not being implemented is the bug. Providing API
calls and not implementing them makes the lack of implementation a bug
(not an RFE as bugid 4102455 suggests).
It is still difficult to write an acceptable file-oriented application
in Java. In JDK 1.1, the file chooser gave us unimplemented calls for
setting filters, making it impossible to narrow the choice of files for
the user. JDK 1.1 also did not provide a directory chooser or provide
multiple selection. Swing has made progress and now provides filters
and directory choosing, but still no way to select multiple files.
Another notable omission for file-oriented applications is a print dialog.
These are requirements if the goal is for the Java platform to compete
Java WorkShop 3.0 Community Edition was recently made available via
web downloads. Once of the first comments we received, was this one
which relates to this bug and 4218429.
From: Fred Romelfanger <###@###.###>
Subject: When adding files to the project, you should be ab
User Name: Fred Romelfanger
Version: Java WorkShop 3.0 Community Edition build_19 Mar 3 1999
Java Version: 1.2
When adding files to the project, you should be able to select multiple files or
select a specific directory to include. The file selection screen would allow me
to select multiple files, but would only add one at a time to the files for the
project. Also when creating a new project the pull down for file type should
have an option to just specify java sources rather than all files.
Name: krT82822 Date: 05/30/99
For a long time now, the documentation for javax.swing.JFileChooser
says 'this feature has not yet been implemented in the current L&Fs'
for the multiple file selection.
Please don't forget to implement it, it would be very useful!
BTW, a separate dialog for direction selection would be nice: I know JFileChooser has
a directories-only option, but users say it's a bit confusing when used
for this purpose.
(Review ID: 54339)