Name: krC82822 Date: 01/03/2001
15 Dec 2000, eval1127@eng -- validation of characters in filenames
can be filed as an EOU. The latter part is documented as not being supported.
see also bug #4125509 (part 2).
------------
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
JFileChooser isn't choosy enough. It:
(a) doesn't check that a filename doesn't contain any illegal characters, and
(b) doesn't check that (for file open dialogs) the file actually exists.
It's possible to do this in user code, but it's the wrong place to do it
because it makes it harder to stick to the look and feel (the text used in
the errors should be consistent across different applications on the same
platform, and different across different platforms), because the JFileChooser
insists on closing itself as soon as a button is clicked.
(Review ID: 112925)
======================================================================